Fork from snarkdown project (no PR accept from 1Y ...) https://github.com/developit/snarkdown
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
adrien 3ff26808e9 Merge branch 'master' of git.iglou.eu:adrien/GMOsnark 2 years ago
src Fix multi line quote 2 years ago
LICENSE Mettre à jour 'LICENSE' 2 years ago
README.md Mettre à jour 'README.md' 2 years ago
logo.png clean for a new beginnings 2 years ago
test.html Add emoji css #7 2 years ago

README.md

GMOsnark

GMOsnark is a dead simple [Markdown] parser, forked from snarkdown

It's designed to be as minimal as possible, for constrained use-cases where a full Markdown parser would be inappropriate.

Features

  • Fast: since it's basically one regex and a huge if statement
  • Tiny: it's 1kb of gzipped ES3
  • Simple: pass a Markdown string, get back an HTML string
  • Note: Tables are supported

Usage

GMOsnark exports a single function, which parses a string of Markdown and returns a String of HTML. Couldn't be simpler.

Inside an HTML page

<script type="module">
import toHtml from "./index.js";

let md = document.getElementById("imput").value;
let html = toHtml(md);
document.getElementById("output").innerHTML = html;
</script>

License

This program is under MIT license [read the entire license file]