qing-markdown-reader
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

说明

Markdown 字符串工具类,传入 markdown 字符串,返回 html 字符串

introduce

Markdown string tool, input markdown string, return html string

演示项目参考

npm 安装

npm install qing-markdown-reader

快速上手

// 引入
import MdReader from "qing-markdown-reader";
 
// hello.md文件内内容为:# hello world
const hello = '# hello world'
 
//# 输出 <h1>hello world<h1>
console.log(MdReader.read(hello))

结合其他项目使用

  • qing-markdown Vue Markdown 组件,可以将本地或远程 .md 文件以及 markdown 字符串解析为 HTML 显示

  • qing-markdown-loader Webpack loader,加载 .md 文件,并返回文件内内容字符串, 以实现使 webpack 可加载 .md 文件的功能

Package Sidebar

Install

npm i qing-markdown-reader

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

2.79 kB

Total Files

4

Last publish

Collaborators

  • qinkaiyuan