Introduction to the remark CLI

John Otander
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 --inspect
  • Use a plugin: remark --use toc
  • Overwrite your document after the plugin runs: remark --use toc -o
  • Lint a document: remark --frail --use preset-lint-markdown-style-guide