process markdown file via marked
seu-markdown
used to parse markdown documents with jsx
and css
codes,
which used to write react demos. The doucment format like:
# this is page title // 文档标题, 也可以写在元信息中: "- title: xxx"
- category: xxx // 分类,元信息分类
- ... // 其它的元信息
--- // 元信息分隔线
xxx ooo // 文档正文
Install seu-markdown
:
tnpm install seu-markdown --save
Use it to process your markdown file:
const smd = require('seu-markdown');
Parse documents to document object.
{
title,
meta,
codes,
}
Render markdown string to html string.
解析 markdown 形式的文档。
tbd
tdb
tbd