Introduction to the remark CLI

InstructorJohn Otander

Share this video with your friends

Send Tweet

You can use the remark CLI to inspect the AST, run plugins, or lint your markdown documents. It can be used in your build scripts to generate HTML or ensure your markdown style guide is adhered to.

  • Inspect the AST: remark document.md --inspect
  • Use a plugin: remark document.md --use toc
  • Overwrite your document after the plugin runs: remark document.md --use toc -o
  • Lint a document: remark document.md --frail --use preset-lint-markdown-style-guide