How to generate highlighted html tags ==this== to <mark>this</mark> #1066
-
most search results for this question show solutions for "code syntax highlighting". ==this== to I'm using react-markdown to do all my conversion from .md to html. Is there a plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Commonmark doesn't include this as a feature. It could be added through a plugin. If there isn't existing one you could create your own. Though I wouldn't necessarily recommend doing so, this page explains more: |
Beta Was this translation helpful? Give feedback.
Commonmark doesn't include this as a feature.
https://commonmark.org/help/
So remark and react-markdown don't include it.
It could be added through a plugin.
There may be an existing one:
https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins
https://github.com/topics/remark-plugin
If there isn't existing one you could create your own. Though I wouldn't necessarily recommend doing so, this page explains more:
https://github.com/micromark/micromark#extending-markdown