Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ast-to-markdown

demsking16.4kMIT1.0.0

Transforms an Unist AST to a Markdown text

ast, markdown, md, unist

readme

Unist AST to Markdown

Transforms an Unist AST to a Markdown text

npm Build status Test coverage

Install

npm install --save ast-to-markdown

Usage

const toMarkdown = require('ast-to-markdown')

const mdText = toMarkdown(tree)

console.log(mdText)

License

Under the MIT license. See LICENSE file for more details.