mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
restructure DONE
This commit is contained in:
11
lib/markdown.js
Normal file
11
lib/markdown.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user