1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Introduction to the remark CLI

    javascriptJavaScript

    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