Skip to content

Commit

Permalink
Use commonjs instead of esm typescript for light emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsible authored and Chocobozzz committed Aug 14, 2020
1 parent 0672dc7 commit 04c7f70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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'
Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 04c7f70

Please sign in to comment.