A Plugin To Colour Text #526
-
I would like it if we had a plugin where I could do like would be very useful for colouring text |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This syntax isn't part of commonmark, but can be added through a plugin, like https://github.com/zestedesavoir/zmarkdown/tree/HEAD/packages/remark-custom-blocks#readme or https://github.com/djm/remark-shortcodes#readme. |
Beta Was this translation helpful? Give feedback.
This syntax isn't part of commonmark, but can be added through a plugin, like https://github.com/zestedesavoir/zmarkdown/tree/HEAD/packages/remark-custom-blocks#readme or https://github.com/djm/remark-shortcodes#readme.
once the plugin is parsing the new syntax, you could then add a transform to apply the color, see https://unifiedjs.com/learn for an intro to syntax trees and creating a plugin/transform.