aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/markdown.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/markdown.ts')
-rw-r--r--server/helpers/markdown.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/markdown.ts b/server/helpers/markdown.ts
index ebf479b98..0b8c2fabc 100644
--- a/server/helpers/markdown.ts
+++ b/server/helpers/markdown.ts
@@ -10,7 +10,7 @@ const markdownIt = new MarkdownItClass('default', { linkify: true, breaks: true,
10markdownIt.enable(TEXT_WITH_HTML_RULES) 10markdownIt.enable(TEXT_WITH_HTML_RULES)
11markdownIt.use(markdownItEmoji) 11markdownIt.use(markdownItEmoji)
12 12
13const toSafeHtml = text => { 13const toSafeHtml = (text: string) => {
14 if (!text) return '' 14 if (!text) return ''
15 15
16 // Restore line feed 16 // Restore line feed
@@ -23,7 +23,7 @@ const toSafeHtml = text => {
23 return sanitizeHtml(html, sanitizeOptions) 23 return sanitizeHtml(html, sanitizeOptions)
24} 24}
25 25
26const mdToPlainText = text => { 26const mdToPlainText = (text: string) => {
27 if (!text) return '' 27 if (!text) return ''
28 28
29 // Convert possible markdown (emojis, emphasis and lists) to html 29 // Convert possible markdown (emojis, emphasis and lists) to html