md8: convert Markdown into HTML
md8 support math plugin syntax for pandoc and gitlab .
Example 1
File : ex1.js
const md8 = let html = md8 console
Run:
$ node ex1.js
<h1> Chapter</h1>
<h2> Section 1</h2>
<p>A link to <a href="http://tw.youtube.com" alt="">YouTube</a> that you may click</p>
<p><figure>
<img src="../img/image.jpg" alt=""></img>
<figcaption>Image1</figcaption></figure>
</p>
<h2> Math</h2>
<p>Support pandoc and gitlab extension</p>
<h3> Pandoc syntax</h3>
<p>An embedded \(int f(x) dx\) math expression.</p>
\[int f(x) dx\]
<h3> Gitlab syntax</h3>
<p>An embedded \(int f(x) dx\) math expression.</p>
\[int f(x) dx\]
<h2> Conclustion</h2>
<p>End</p>
<p></p>
Show Math in Browser
You may use MathJax or KaTex to render the output html of md8.
The MathJax Example: