You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been wanting a way to work with comark from the terminal without having to wire up a script every time. This adds @comark/cli: a CLI that wraps the core parser and renderers so you can parse, render, validate, preview, and manipulate markdown files directly from your shell (initially I was thinking about having a comark github action or something to validate the markdown but I believe with the CLI, user can do much more)
# terminal preview
comark log article.md
# render to html
comark render README.md -o output.html
# validate in CI
comark validate content/**/*.md ||exit 1
# pipe from stdinecho"# Hello **world**"| comark render
# fix incomplete AI outputecho"here is **bold and a [link](https://exam"| comark autoclose
# live preview (easy to make using unjs ecosystem)
comark serve draft.md --port 8080
Description
Been wanting a way to work with comark from the terminal without having to wire up a script every time. This adds @comark/cli: a CLI that wraps the core parser and renderers so you can parse, render, validate, preview, and manipulate markdown files directly from your shell (initially I was thinking about having a comark github action or something to validate the markdown but I believe with the CLI, user can do much more)
Screen.Recording.2026-04-15.at.1.13.13.AM.mov