X-Git-Url: http://these/git/?a=blobdiff_plain;f=ui%2Fsrc%2Futils.ts;fp=ui%2Fsrc%2Futils.ts;h=89be9e2bfb781c828a2f74a7e820c1815975906b;hb=988eef2e6575f5e47b71489791ae0cb1b16730d8;hp=d69bf421c69f25fd74f45cd406ef1588d8a750ab;hpb=8d1db3c39542e6c76a82f9d6119e89fdcfd6e845;p=lemmy.git 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 '\n'; } } -}); +}).use(markdownitEmoji); export function hotRank(comment: Comment): number { // Rank = ScaleFactor * sign(Score) * log(1 + abs(Score)) / (Time + 2)^Gravity