Skip to content

Correctly match -# (caption) #5

@Kyrela

Description

@Kyrela

Should match -# elements (aka captions) as a new node type.

For example:

Foo
-# bar **baz**

Is rendered as:
image
And should be parsed as:

[
    {'node_type': 'TEXT', 'content': 'Foo\n', 'children': []},
    {'node_type': 'CAPTION', 'content': 'bar **baz**', 'children': [
        {'node_type': 'TEXT', 'content': 'bar ', 'children': []},
        {'node_type': 'BOLD', 'content': 'baz', 'children': [
            {'node_type': 'TEXT', 'content': 'baz', 'children': []}
        ]}
    ]}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions