Skip to content

Instantly share code, notes, and snippets.

@hahwul
Last active December 30, 2020 04:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hahwul/3cb98651c8a194a31146e21d14cde0cd to your computer and use it in GitHub Desktop.
Markdown to HTML
// included this js
// <script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.1/showdown.min.js"></script>
function md_to_html(text) {
var converter = new showdown.Converter(),
html = converter.makeHtml(text);
return html
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment