Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonwaldherr/micromarkdown.js
convert markdown to html in under 5kb
https://github.com/simonwaldherr/micromarkdown.js
hacktoberfest-accepted html javascript markdown
Last synced: about 20 hours ago
JSON representation
convert markdown to html in under 5kb
- Host: GitHub
- URL: https://github.com/simonwaldherr/micromarkdown.js
- Owner: SimonWaldherr
- License: mit
- Created: 2013-11-30T19:40:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T18:32:59.000Z (about 2 years ago)
- Last Synced: 2024-05-02T01:23:18.445Z (8 months ago)
- Topics: hacktoberfest-accepted, html, javascript, markdown
- Language: JavaScript
- Homepage: http://simonwaldherr.github.io/micromarkdown.js/
- Size: 87.9 KB
- Stars: 208
- Watchers: 9
- Forks: 44
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# ![micromarkdown.js](https://simonwaldherr.de/umd.png)
convert [markdown](http://en.wikipedia.org/wiki/Markdown) to [HTML](http://en.wikipedia.org/wiki/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
```html
```
```js
var input = document.getElementById('input').value,
outputEle = document.getElementById('outEle');outputEle.innerHTML = micromarkdown.parse(input);
```### node
install via npm
```sh
npm install micromarkdown
``````node
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
```sh
node nodemmd.js
```## demo
Test this code on the associated github page [simonwaldherr.github.io/micromarkdown.js/](http://simonwaldherr.github.io/micromarkdown.js/).
There is also a [Testpage](http://simonwaldherr.github.io/micromarkdown.js/test.html) and a [diff between the php and the js version](http://simonwaldherr.github.io/micromarkdown.js/diff.html).## contact
Feel free to contact me via [eMail](mailto:[email protected]) or on [Twitter](http://twitter.com/simonwaldherr). Pull Requests are always welcome.