micromarkdown.js

convert markdown to html in under 5kb

Github stars Tracking Chart

micromarkdown.js

Build Status
Flattr donate button

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.4
Date: 10.2015

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. This software will be continually developed. Suggestions and tips are always welcome.

Main metrics

Overview
Name With OwnerSimonWaldherr/micromarkdown.js
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2013-11-30 19:40:09
Pushed At2022-12-01 18:32:59
Last Commit At2022-12-01 19:32:59
Release Count11
Last Release Namev0.3.0 (Posted on 2014-07-09 02:03:32)
First Release Namev0.1.0 (Posted on 2013-12-26 17:43:32)
用户参与
Stargazers Count210
Watchers Count8
Fork Count44
Commits Count59
Has Issues Enabled
Issues Count26
Issue Open Count19
Pull Requests Count7
Pull Requests Open Count1
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private