Confused by why remark-directives converts ':bar' in 'foo:bar' #723
-
This gets parsed by {
"type":"textDirective",
"name":"ref",
"attributes":{},
"children":[
{
"type":"text",
"value":"anm"
},
{
"type":"textDirective",
"name":"rgbTime",
"attributes": {},
"children": []
}
]
} essentially treating Apart from being annoying, it's not clear to me why this is even parsed this way to begin with. The language describing text directives in the proposal is vague and could be interpreted a number of ways, but the description for leaf directives makes a pretty clear distinction (emphasis added)
Additionally, I find it fairly amusing that the latest commit to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
An escape character can be used to ensure it is parsed as plain text
|
Beta Was this translation helpful? Give feedback.
An escape character can be used to ensure it is parsed as plain text
https://astexplorer.net/#/gist/29b7c8301b71d62fb63bd1d7438ebc1a/bd7bbdef62dc9e1ec50eca91086e1e3556ccbacd