diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/core/renderer/markdown.service.ts | 5 |
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 @@ | |||
1 | import * as MarkdownIt from 'markdown-it' | 1 | import * as MarkdownIt from 'markdown-it' |
2 | import MarkdownItEmoji from 'markdown-it-emoji' | ||
3 | import { buildVideoLink } from 'src/assets/player/utils' | 2 | import { buildVideoLink } from 'src/assets/player/utils' |
4 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
5 | import { HtmlRendererService } from './html-renderer.service' | 4 | import { 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 | ||