aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/core/renderer/markdown.service.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/core/renderer/markdown.service.ts b/client/src/app/core/renderer/markdown.service.ts
index 2ff3de34e..0e5c2ed75 100644
--- a/client/src/app/core/renderer/markdown.service.ts
+++ b/client/src/app/core/renderer/markdown.service.ts
@@ -1,5 +1,4 @@
1import * as MarkdownIt from 'markdown-it' 1import * as MarkdownIt from 'markdown-it'
2import MarkdownItEmoji from 'markdown-it-emoji'
3import { buildVideoLink } from 'src/assets/player/utils' 2import { buildVideoLink } from 'src/assets/player/utils'
4import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
5import { HtmlRendererService } from './html-renderer.service' 4import { HtmlRendererService } from './html-renderer.service'
@@ -92,7 +91,9 @@ export class MarkdownService {
92 this.markdownParsers[ name ] = await this.createMarkdownIt(config) 91 this.markdownParsers[ name ] = await this.createMarkdownIt(config)
93 92
94 if (withEmoji) { 93 if (withEmoji) {
95 this.markdownParsers[ name ].use(MarkdownItEmoji) 94 // TODO: write types
95 const emoji = require('markdown-it-emoji/light')
96 this.markdownParsers[ name ].use(emoji)
96 } 97 }
97 } 98 }
98 99