mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
add Markdown
This commit is contained in:
12
browser/main/Mixins/Markdown.js
Normal file
12
browser/main/Mixins/Markdown.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var markdownit = require('markdown-it')
|
||||
var md = markdownit({
|
||||
typographer: true
|
||||
})
|
||||
|
||||
var Markdown = {
|
||||
markdown: function (content) {
|
||||
return md.render(content)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Markdown
|
||||
Reference in New Issue
Block a user