1.0.3 • Published 4 years ago

markdown-article-to-html v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Article Markdown To HTML

把文章渲染成简单的 HTML

How to use

const articleToHtml = require('markdown-article-to-html')
const html = articleToHtml({
    title: string;
    author: {
        nickname: string;
        uid: number;
        username: string;
    };
    description: string;
    datePublished: Date;
    markdown: string;
}, { minify: true })
fs.writeFileSync('./output.html', html)