@caganelden/markdjs
v1.0.4
Published
A lightweight & easy-to-use markdown to html rendering javascript library with XSS protection.
Maintainers
Readme
MarkdJS
MarkdJS is a lightweight & easy-to-use markdown to html rendering javascript library with XSS protection.
Set Up
Setting up the library is pretty simple, just run
npm i @caganelden/markdjsYou can parse any markdown into html as it is shown bellow:
<script type="module">
import rendMD from 'main.js';
let stringVar = "lorem ipsum dolor sit amet...";
let renderedText = rendMD(stringVar);
</script>rendMD(); renders your markdown to html meaning you can make it reactive by just declaring it as a parameter & access your rendered text by just calling the variable holding rendMD();
