diff options
author | kimsible <kimsible@users.noreply.github.com> | 2020-08-09 13:05:47 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-14 15:03:38 +0200 |
commit | 04c7f7017546709c4bcf83b1b143e399582e63de (patch) | |
tree | 728eb07864d80609f7049ad5d84692d6d97a9cef /client | |
parent | 0672dc769b6ee42b4357748c62aaeabf8801c472 (diff) | |
download | PeerTube-04c7f7017546709c4bcf83b1b143e399582e63de.tar.gz PeerTube-04c7f7017546709c4bcf83b1b143e399582e63de.tar.zst PeerTube-04c7f7017546709c4bcf83b1b143e399582e63de.zip |
Use commonjs instead of esm typescript for light emojis
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 | ||