markdown-pre
v1.1.0
Published
Convert the contents of the first `<PRE>` element I find from Markdown to HTML, using a 1-line Javascript include.
Downloads
1
Readme
markdown-pre
I am markdown-pre, built on markdown-it.
I convert the contents of the first <PRE>
HTML element I find on the page
from Markdown to HTML, using a one-line Javascript include.
I also inject a default stylesheet.
Zero configuration!
<pre>
# Hello world!
Lorem ipsum dolor sit amet, dolor voluptua est ad …
</pre>
<script src="https://unpkg.com/markdown-pre@^1"></script>
Simple?!
License
License: MIT