This is a demo of https://github.com/github/cmark-gfm compiled to WebAssembly.
Code is on GitHub at https://github.com/bolinfest/cmark-gfm/commits/wasm-demo.

These are the options exposed in cmark-gfm.h:

Include a data-sourcepos attribute on all block elements.

Render softbreak elements as hard line breaks.

Render raw HTML and unsafe links (javascript:, vbscript:, file:, and data:, except for image/png, image/gif, image/jpeg, or image/webp mime types). By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are replaced by empty strings.

Render softbreak elements as spaces.

Validate UTF-8 in the input before parsing, replacing illegal sequences with the replacement character U+FFFD.

Convert straight quotes to curly, --- to em dashes, -- to en dashes.

Use GitHub-style <pre lang="x"> tags for code blocks instead of <pre><code class="language-x">.

Be liberal in interpreting inline HTML tags.

Parse footnotes.

Only parse strikethroughs if surrounded by exactly 2 tildes. Gives some compatibility with redcarpet.

Use style attributes to align table cells instead of align attributes.

Include the remainder of the info string in code blocks in a separate attribute.