remark plugin to configure it with comments.
npm install remark-comment-config
Say we have the following file,
<!--remark commonmark bullet="*"-->1) Commonmark list (this is a parse setting)- List item (this is a stringify setting)
And our script,
example.js, looks as follows:
var vfile =var remark =var commentConfig =
node example yields:
<!--remark commonmark bullet="*"-->1. Commonmark list (this is a parse setting)* List item (this is a stringify setting)
This is essentially the same as
except that comments are invisible when rendering to HTML (such as on GitHub).
remark-comment-config can change how Markdown is parsed or compiled.
If the Markdown is user provided, this may open you up to a
cross-site scripting (XSS) attack.
remark-yaml-config— Configure remark from YAML
remark-message-control— Configure messages with comments
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.