Skip to content

A Plugin To Colour Text #526

Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants