From 04c7f7017546709c4bcf83b1b143e399582e63de Mon Sep 17 00:00:00 2001 From: kimsible Date: Sun, 9 Aug 2020 13:05:47 +0200 Subject: Use commonjs instead of esm typescript for light emojis --- client/src/app/core/renderer/markdown.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client') 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 @@ import * as MarkdownIt from 'markdown-it' -import MarkdownItEmoji from 'markdown-it-emoji' import { buildVideoLink } from 'src/assets/player/utils' import { Injectable } from '@angular/core' import { HtmlRendererService } from './html-renderer.service' @@ -92,7 +91,9 @@ export class MarkdownService { this.markdownParsers[ name ] = await this.createMarkdownIt(config) if (withEmoji) { - this.markdownParsers[ name ].use(MarkdownItEmoji) + // TODO: write types + const emoji = require('markdown-it-emoji/light') + this.markdownParsers[ name ].use(emoji) } } -- cgit v1.2.3