{"repo":"kivikakk/comrak","free":true,"listed":false,"github":"https://github.com/kivikakk/comrak","clone":"git clone https://github.com/kivikakk/comrak.git","description":"CommonMark + GFM compatible Markdown parser and renderer","language":"Rust","stars":1679,"topics":["commonmark","markdown","rust"],"license":null,"category":"cli-tools","readme_excerpt":"Comrak Comrak is a CommonMark and GitHub Flavored Markdown compatible parser and renderer, written in Rust. Compliant with CommonMark 0.31.2 by default. Installation Specify it as a requirement in Cargo.toml : Comrak's library supports Rust 1.85 +. CLI - Anywhere with a Rust toolchain: - cargo install comrak - cargo binstall comrak - Many Unix distributions: - pacman -S comrak - brew install comrak - dnf install comrak - nix run nixpkgs#comrak - Windows: - scoop install comrak You can also find builds I've published in GitHub Releases, but they're limited to machines I have access to at the time of making them! webinstall.dev offers curl shell -style installation of the latest of these for your OS, including Windows. Usage Click to expand the CLI --help output. And there's a Rust interface. You can use comrak::markdown to html directly: Or you can parse the input into an AST yourself, manipulate it, and then use your desired formatter: For a slightly more real-world example, see how I generate my GitHub user README from a base document with embedded YAML, which itself has embedded Markdown, or check out some of Comrak's dependents on crates.io or on GitHub. Security As with cmark and cmark-gfm , Comrak will scrub raw HTML and potentially dangerous links. This change was introduced in Comrak 0.4.0 in support of a safe-by-default posture, and later adopted by our contemporaries. :) To allow these, use the r#unsafe option (or --unsafe with the command line program). If doing so,","default_branch":null,"files":null,"tree":[],"storefront":"/r/kivikakk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kivikakk/comrak/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}