mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
MarkdownでEmojiが使える
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import markdownit from 'markdown-it'
|
||||
import hljs from 'highlight.js'
|
||||
import emoji from 'markdown-it-emoji'
|
||||
|
||||
var md = markdownit({
|
||||
typographer: true,
|
||||
@@ -18,6 +19,7 @@ var md = markdownit({
|
||||
return ''; // use external default escaping
|
||||
}
|
||||
})
|
||||
md.use(emoji)
|
||||
|
||||
export default function markdown (content) {
|
||||
if (content == null) content = ''
|
||||
|
||||
Reference in New Issue
Block a user