Skip to content

Parsing error when parsing nested bold+ital #279

@ShadiestGoat

Description

@ShadiestGoat

I want to parse the following text: **bold *ital***, expecting bold ital, but I'm getting bold *ital*.

This is caused by close the strong tag on the first instance of 2 *s, even though there is an open ital tag *.

what its being parsed as now:

[
	{
		"content": "bold *ital",
		"type": "bold"
	},
	{
		"content": "*",
		"type": "text"
	}
]

what it should be parsed as:

[
	{
		"type": "bold",
                "children": [
	           {
		     "content": "bold ",
		     "type": "text"
	           },
	           {
		     "content": "ital",
		     "type": "ital"
	           }
                ]
	}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions