diff options
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r-- | ui/src/utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts index d69bf421..89be9e2b 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -9,6 +9,7 @@ import 'moment/locale/nl'; import { UserOperation, Comment, User, SortType, ListingType } from './interfaces'; import * as markdown_it from 'markdown-it'; +declare var markdownitEmoji: any; import * as markdown_it_container from 'markdown-it-container'; export let repoUrl = 'https://github.com/dessalines/lemmy'; @@ -39,7 +40,7 @@ var md = new markdown_it({ return '</details>\n'; } } -}); +}).use(markdownitEmoji); export function hotRank(comment: Comment): number { // Rank = ScaleFactor * sign(Score) * log(1 + abs(Score)) / (Time + 2)^Gravity |