markdown-article-to-html
v1.0.3
Published
Convert your article with markdown to the simple one file HTML
Downloads
10
Readme
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)