Skip to content

[Feature Request]: comark-cli #124

Description

@arashsheyda

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)

# 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 stdin
echo "# Hello **world**" | comark render

# fix incomplete AI output
echo "here is **bold and a [link](https://exam" | comark autoclose

# live preview (easy to make using unjs ecosystem)
comark serve draft.md --port 8080
Screen.Recording.2026-04-15.at.1.13.13.AM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions