Input:
Actual AST:
{
"type": "paragraph",
"children": [
{
"type": "emphasis",
"children": [
{
"type": "text",
"value": "`"
}
]
},
{
"type": "text",
"value": "`_"
}
]
}
Expected AST:
{
"type": "paragraph",
"children": [
{
"type": "emphasis",
"children": [
{
"type": "inlineCode",
"value": "_"
}
]
}
]
}
Commonmark:
Code span backticks have higher precedence than any other inline constructs except HTML tags and autolinks. Thus, for example, this is not parsed as emphasized text, since the second * is part of a code span: *foo*``.
Input:
Actual AST:
{ "type": "paragraph", "children": [ { "type": "emphasis", "children": [ { "type": "text", "value": "`" } ] }, { "type": "text", "value": "`_" } ] }Expected AST:
{ "type": "paragraph", "children": [ { "type": "emphasis", "children": [ { "type": "inlineCode", "value": "_" } ] } ] }Commonmark: