Add attribute/class #829
-
Is micromark/remark able to do the following: I saw micromark-extension-directive, but that's mostly useful for adding content, not for semantically marking existing content. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
https://github.com/arobase-che/remark-attr as similar (if not the same) syntax, though it may not work with the latest version of remark arobase-che/remark-attr#22
Directives can be used to add content or to annotate existing content. |
Beta Was this translation helpful? Give feedback.
https://github.com/arobase-che/remark-attr as similar (if not the same) syntax, though it may not work with the latest version of remark arobase-che/remark-attr#22
Directives can be used to add content or to annotate existing content.
Using https://github.com/remarkjs/remark-directive along side https://github.com/syntax-tree/unist-util-find-all-before would allow for annotating the node/content before.
They'd be wrapped up in a …