Overview of cmark capabilities
mastercmark is the C reference implementation of CommonMark. It provides two main components:
libcmark(Shared Library): Provides functions to parse CommonMark documents into an Abstract Syntax Tree (AST), manipulate the AST, and render it into several formats including:- HTML
- groff man
- LaTeX
- CommonMark
- XML (representation of the AST)
cmark(Command-line Program): A tool for parsing and rendering CommonMark documents via the CLI.
Key advantages include high performance, portability (standard C99, no external dependencies), and strict adherence to the CommonMark specification.