项目
在 GitHub 查看
SimonWaldherr/micromarkdown.js
关于
convert markdown to html in under 5kb
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文convert markdown to HTML in under 5kb
take a look at the to PHP translated version: https://github.com/SimonWaldherr/micromarkdown.php
about
License: MIT
Version: 0.3.5
Date: 10.2019
howto
browser
<script type="text/javascript" src="//simonwaldherr.github.io/micromarkdown.js/dist/micromarkdown.min.js"></script>
var input = document.getElementById('input').value,
outputEle = document.getElementById('outEle');
outputEle.innerHTML = micromarkdown.parse(input);
node
install via npm
npm install micromarkdown
var mmd = require('micromarkdown');
console.log(mmd.parse('*foobar*\n**lorem** ***ipsum***\n\n* this\n* is a\n* list\n'));
or take a look at the nodemmd.js node example
node nodemmd.js
demo
Test this code on the associated github page simonwaldherr.github.io/micromarkdown.js/.
There is also a Testpage and a diff between the php and the js version.
contact
Feel free to contact me via eMail or on Twitter. Pull Requests are always welcome.
探索相关项目
加载中…
