Skip to content

Leko/darkdown

Repository files navigation

[WIP] darkdown

Note: This package is under development.

Markdown parser for Deno

Getting started

CommonMark

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>

GitHub flavored markdown

import {
  parse,
  stringify,
  transform,
} from 'https://denopkg.com/Leko/darkdown/gfm.ts'

// You can use the same as commonmark.ts

Development

Test

deno test --allow-read=./fixtures/commonmark-0.29-spec.json

Update spec file


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published