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
- Host: GitHub
- URL: https://github.com/demsking/ast-to-markdown
- Owner: demsking
- License: mit
- Created: 2017-09-16T06:34:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T18:23:11.000Z (about 6 years ago)
- Last Synced: 2025-07-08T14:22:23.179Z (about 1 year ago)
- Topics: ast, markdown, md, unist
- Language: JavaScript
- Homepage: https://gitlab.com/demsking/ast-to-markdown
- Size: 143 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unist AST to Markdown
Transforms an [Unist AST](https://github.com/syntax-tree/unist) to a Markdown text
[](https://www.npmjs.com/package/ast-to-markdown) [](https://gitlab.com/demsking/ast-to-markdown/pipelines) [](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.