An open API service indexing awesome lists of open source software.

https://github.com/demsking/ast-to-markdown

Transforms an Unist AST to a Markdown text
https://github.com/demsking/ast-to-markdown

ast markdown md unist

Last synced: about 1 year ago
JSON representation

Transforms an Unist AST to a Markdown text

Awesome Lists containing this project

README

          

# Unist AST to Markdown

Transforms an [Unist AST](https://github.com/syntax-tree/unist) to a Markdown text

[![npm](https://img.shields.io/npm/v/ast-to-markdown.svg)](https://www.npmjs.com/package/ast-to-markdown) [![Build status](https://gitlab.com/demsking/ast-to-markdown/badges/master/pipeline.svg)](https://gitlab.com/demsking/ast-to-markdown/pipelines) [![Test coverage](https://gitlab.com/demsking/ast-to-markdown/badges/master/coverage.svg)](https://gitlab.com/demsking/ast-to-markdown/pipelines)

## Install

```sh
npm install --save ast-to-markdown
```

## Usage

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

const mdText = toMarkdown(tree)

console.log(mdText)
```

## License

Under the MIT license. See [LICENSE](https://gitlab.com/demsking/ast-to-markdown/blob/master/LICENSE) file for more details.