Replies: 2 comments 17 replies
-
Welcome @vrepsys! 👋 Linking a related discussion, it feels like this may be similar to or the same as https://github.com/orgs/remarkjs/discussions/651 Where because of the overlap in syntax between gemoji and text directive, an escape is added by remark directive to ensure serialization does not accidentally add a directive where there should not be one. |
Beta Was this translation helpful? Give feedback.
-
GH supports this. Why doesn’t your setup support this? |
Beta Was this translation helpful? Give feedback.
-
Hello all,
looking for some guidance with this issue I have.
The issue I'm facing is that remark-directive messes with how gemojis are rendered to from AST->Markdown.
Basically if there's a paragraph with a :gemoji:,
Is there a reason why it gets a backslash? I understand why a paragraph with :textDirective should be escaped, but :this: is not a text directive. Just want to understand.
I dug a bit into
mdast-util-directive
code, trying to find answers.It seems like this part might have something to do with how AST is converted to Markdown
Couldn't figure out which part exactly cause the slash to appear. If anyone has recommendations for how to start learning how micromark extensions work please share! I've already read the micromark README.
Sorry for long text, too late in the evening to write short and concise:)
Beta Was this translation helpful? Give feedback.
All reactions