1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00
Files
Boostnote/lib/markdown.js
2015-10-13 18:07:33 +09:00

12 lines
223 B
JavaScript

import markdownit from 'markdown-it'
var md = markdownit({
typographer: true,
linkify: true
})
export default function markdown (content) {
if (content == null) content = ''
return md.render(content.toString())
}