Skip to content
cagan-eldenPublic

About

A lightweight & easy-to-use markdown to html rendering javascript library with XSS protection.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/markdjs

You 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();

About

A lightweight & easy-to-use markdown to html rendering javascript library with XSS protection.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages