Note: This package is under development.
Markdown parser for Deno
- ✨ Written in ES Modules
- ✔️ 100% compatible with CommonMark spec (see our tests)
- 💞 GitHub flavored markdown is also supported
- 💥 AST structure is the same as remark
import {
parse,
stringify,
renderHTML,
transform,
} from 'https://denopkg.com/Leko/darkdown/commonmark.ts'
const ast = parse('# markdown')
const markdown = stringify(ast) // => "# markdown"
const html = renderHTML(ast) // => "<h1>markdown</h1>"
const html = transform('# markdown') // => "<h1>markdown</h1>
import {
parse,
stringify,
transform,
} from 'https://denopkg.com/Leko/darkdown/gfm.ts'
// You can use the same as commonmark.ts
deno test --allow-read=./fixtures/commonmark-0.29-spec.json