Skip to content

Duangi/markdowncompiler

Repository files navigation

markdowncompiler

用于将markdown解析成tokens,将tokens渲染为html字符串。 方便构建WYSIWYG的markdown编辑器

Install

node.js:

npm install markdowncompiler --save

Usage examples

import MarkdownCompiler from ('markdowncompiler')
const md = new MarkdownCompiler()
tokens = md.markdown2Tokens('# 123\n## 456\n```python\nprint(123)\n```')
html = md.tokens2Html(tokens)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published