Created
July 20, 2016 11:58
-
-
Save avnersorek/e32db8db795360a03f7566c27bf9486b to your computer and use it in GitHub Desktop.
Calling 3rd party in-process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const showdown = require('showdown'); | |
const converter = new showdown.Converter(); | |
function markdownToHtml(markdown) { | |
return converter.makeHtml(markdown); | |
} | |
module.exports = { | |
markdownToHtml | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment