diff options
Diffstat (limited to 'server/helpers/markdown.ts')
-rw-r--r-- | server/helpers/markdown.ts | 4 |
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, | |||
10 | markdownIt.enable(TEXT_WITH_HTML_RULES) | 10 | markdownIt.enable(TEXT_WITH_HTML_RULES) |
11 | markdownIt.use(markdownItEmoji) | 11 | markdownIt.use(markdownItEmoji) |
12 | 12 | ||
13 | const toSafeHtml = text => { | 13 | const 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 | ||
26 | const mdToPlainText = text => { | 26 | const 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 |