aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-08-09 13:05:47 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-14 15:03:38 +0200
commit04c7f7017546709c4bcf83b1b143e399582e63de (patch)
tree728eb07864d80609f7049ad5d84692d6d97a9cef
parent0672dc769b6ee42b4357748c62aaeabf8801c472 (diff)
downloadPeerTube-04c7f7017546709c4bcf83b1b143e399582e63de.tar.gz
PeerTube-04c7f7017546709c4bcf83b1b143e399582e63de.tar.zst
PeerTube-04c7f7017546709c4bcf83b1b143e399582e63de.zip
Use commonjs instead of esm typescript for light emojis
-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