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"
}
]
}
]
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" } ] } ]