Skip to content

tqwewe/markdown2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Markdown2HTML

Safely convert your markdown code to HTML escaping all dangerous markdown whithout damaging the overall markdown code.

Installing

Copy markdown2html.min.js into your project and link it in your HTML document with

<script rel="/js/markdown2html.min.js"></script>

Usage

Once you have imported markdown2html.min.js, use the single function markdownToHTML(markdown) to convert any markdown to HTML code.

Example usage
var markdown = "This text is in **Markdown**";
var html = markdownToHTML(markdown);

Sources

This whole package was not written by just me... I used the marked package on github along with a custom made function.

About

Safely convert any markdown to HTML code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published