| 1 |
<!doctype html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<title>Comrak · Markdown parser and renderer</title> |
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 |
<meta name="theme-color" content="#3E2349"> |
| 8 |
<link rel="stylesheet" href="styles.css"> |
| 9 |
<link rel="icon" type="image/png" href="favicon.png"> |
| 10 |
|
| 11 |
<meta property="og:type" content="website"> |
| 12 |
<meta property="og:title" content="Comrak"> |
| 13 |
<meta property="og:url" content="https://comrak.ee/"> |
| 14 |
<meta property="og:description" content="Homepage of Comrak, a CommonMark and GitHub Flavored Markdown parser and renderer. Standalone tool and Rust library."> |
| 15 |
<meta name="description" content="Homepage of Comrak, a CommonMark and GitHub Flavored Markdown parser and renderer. Standalone tool and Rust library."> |
| 16 |
<meta property="og:image" content="https://comrak.ee/comrak.png"> |
| 17 |
</head> |
| 18 |
<body> |
| 19 |
<h1 id="comrak">Comrak<a href="#comrak" aria-label="Link to heading 'Comrak'" data-heading-content="Comrak" class="anchor"></a></h1> |
| 20 |
<p>Comrak is a <a href="https://commonmark.org/">CommonMark</a> and <a href="https://github.github.com/gfm/">GitHub Flavored Markdown</a> compatible parser and renderer, written in Rust.</p> |
| 21 |
<p>It is <a href="https://github.com/kivikakk/comrak">developed on GitHub</a> by a community of contributors, and released under the <a href="https://github.com/kivikakk/comrak/blob/main/COPYING">BSD 2-clause license</a>, forever<sup class="footnote-ref"><a href="#fn-no-cla" id="fnref-no-cla" data-footnote-ref>1</a></sup>, for use by all.</p> |
| 22 |
<h2 id="features">Features<a href="#features" aria-label="Link to heading 'Features'" data-heading-content="Features" class="anchor"></a></h2> |
| 23 |
<ul> |
| 24 |
<li>Compatible with <a href="https://spec.commonmark.org/0.31.2/">CommonMark 0.31.2</a> by default.</li> |
| 25 |
<li>One option to toggle on all <a href="https://github.github.com/gfm/">GitHub Flavored Markdown</a> extensions (or enable them separately).</li> |
| 26 |
<li>Many additional <a href="https://docs.rs/comrak/latest/comrak/options/struct.Extension.html">extensions</a> developed by the community.</li> |
| 27 |
<li>Fine-grained <a href="https://docs.rs/comrak/latest/comrak/options/struct.Parse.html">parse</a> and <a href="https://docs.rs/comrak/latest/comrak/options/struct.Render.html">render</a> options.</li> |
| 28 |
<li><a href="https://github.com/kivikakk/comrak#plugins">Pluggable</a> syntax highlighting for code blocks.</li> |
| 29 |
<li><a href="https://docs.rs/comrak/latest/comrak/macro.create_formatter.html">Custom formatter</a> support to override the rendering of any node type.</li> |
| 30 |
</ul> |
| 31 |
<h2 id="usage">Usage<a href="#usage" aria-label="Link to heading 'Usage'" data-heading-content="Usage" class="anchor"></a></h2> |
| 32 |
<p>Comrak can be used directly on the command-line or as part of a batch processing pipeline, and is available pre-built on <a href="https://github.com/kivikakk/comrak#cli">many platforms</a>.</p> |
| 33 |
<p>It can also be used as a library in Rust as a Cargo dependency, or with <a href="#bindings">bindings to other languages</a>. |
| 34 |
The WASM target lets it be used <a href="https://gitlab-org.gitlab.io/ruby/gems/gitlab-glfm-markdown/">directly in webpages</a>.</p> |
| 35 |
<p>This webpage is <a href="Makefile">created with Comrak</a> by stitching together three elements:</p> |
| 36 |
<ul> |
| 37 |
<li><a href="https://github.com/kivikakk/comrak/blob/main/www/header.html"><code>header.html</code></a></li> |
| 38 |
<li><a href="https://github.com/kivikakk/comrak/blob/main/www/index.md?plain=1"><code>index.md</code></a> converted with <code>--header-id-prefix "" --smart -e footnotes</code></li> |
| 39 |
<li><a href="https://github.com/kivikakk/comrak/blob/main/www/footer.html"><code>footer.html</code></a></li> |
| 40 |
</ul> |
| 41 |
<p>The CLI help for the latest version is available in the <a href="https://github.com/kivikakk/comrak#usage">README</a>, and the Rust documentation is on <a href="https://docs.rs/comrak/latest/comrak/">docs.rs</a>.</p> |
| 42 |
<h2 id="bindings">Bindings<a href="#bindings" aria-label="Link to heading 'Bindings'" data-heading-content="Bindings" class="anchor"></a></h2> |
| 43 |
<ul> |
| 44 |
<li><a href="https://github.com/gjtorikian/commonmarker">Commonmarker</a>, <a href="https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown">gitlab-glfm-markdown</a> (Ruby)</li> |
| 45 |
<li><a href="https://mdelixir.dev">MDEx</a> (Elixir)</li> |
| 46 |
<li><a href="https://github.com/lmmx/comrak">comrak</a>, <a href="https://github.com/Martin005/comrak-ext">comrak-ext</a> (Python)</li> |
| 47 |
<li><a href="https://github.com/nberlette/comrak-wasm">comrak-wasm</a> (TypeScript)</li> |
| 48 |
</ul> |
| 49 |
<h2 id="who-uses-comrak">Who uses Comrak?<a href="#who-uses-comrak" aria-label="Link to heading 'Who uses Comrak?'" data-heading-content="Who uses Comrak?" class="anchor"></a></h2> |
| 50 |
<ul> |
| 51 |
<li><a href="https://crates.io/">crates.io</a> and <a href="https://docs.rs/comrak/latest/comrak/">docs.rs</a></li> |
| 52 |
<li><a href="https://gitlab.com/">GitLab</a></li> |
| 53 |
<li><a href="https://deno.com/">Deno</a></li> |
| 54 |
<li><a href="https://www.reddit.com/">Reddit</a></li> |
| 55 |
<li><a href="https://lockbook.net/">Lockbook</a></li> |
| 56 |
<li><a href="https://github.com/kivikakk/comrak/network/dependents">many</a> <a href="https://crates.io/crates/comrak/reverse_dependencies">more!</a></li> |
| 57 |
</ul> |
| 58 |
<h2 id="questions-commits-cat-pictures">Questions? Commits? Cat pictures?<a href="#questions-commits-cat-pictures" aria-label="Link to heading 'Questions? Commits? Cat pictures?'" class="anchor"></a></h2> |
| 59 |
<p>You can contact the maintainers and community <a href="https://github.com/kivikakk/comrak">on GitHub</a>, or you can |
| 60 |
email the author at <a href="mailto:[email protected]"><code>[email protected]</code></a>. |
| 61 |
Please report security issues to that email address.</p> |
| 62 |
<p>Contributions are <strong>highly encouraged</strong>, and we would love to help you |
| 63 |
through the process. We practice <a href="http://hintjens.com/blog:106">Optimistic Merging</a> as described by |
| 64 |
Peter Hintjens. We have a <a href="https://github.com/kivikakk/comrak/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> which forms the basis of how |
| 65 |
we treat one another.</p> |
| 66 |
<p>If you have a GitHub account, you are welcome to use its interface to |
| 67 |
report issues, open pull requests, and <a href="https://github.com/kivikakk/comrak/security/advisories/new">privately report security issues</a>. |
| 68 |
If not, you are very welcome to discuss and contribute by email, and a |
| 69 |
maintainer will make those actions on your behalf, attributed however you |
| 70 |
like.</p> |
| 71 |
<hr /> |
| 72 |
<section class="footnotes" data-footnotes> |
| 73 |
<ol> |
| 74 |
<li id="fn-no-cla"> |
| 75 |
<p>Comrak intentionally does not use a <a href="https://en.wikipedia.org/wiki/Contributor_license_agreement">Contributor License Agreement</a> — every contributor retains copyright on their contributions. <a href="#fnref-no-cla" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1" aria-label="Back to reference 1">↩</a></p> |
| 76 |
</li> |
| 77 |
</ol> |
| 78 |
</section> |
| 79 |
<noscript> |
| 80 |
<img src="https://shynet.hrzn.ee/ingress/a91a874e-a393-4bf7-a7af-422904d9b7da/pixel.gif"> |
| 81 |
</noscript> |
| 82 |
<script defer src="https://shynet.hrzn.ee/ingress/a91a874e-a393-4bf7-a7af-422904d9b7da/script.js"></script> |
| 83 |
</body> |
| 84 |
</html> |