1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00
Files
Boostnote/browser/main/Mixins/Markdown.js
2015-10-08 20:40:19 +09:00

15 lines
254 B
JavaScript

var markdownit = require('markdown-it')
var md = markdownit({
typographer: true,
linkify: true
})
var Markdown = {
markdown: function (content) {
if (content == null) content = ''
return md.render(content)
}
}
module.exports = Markdown