From: Alec Armbruster Date: Fri, 16 Jun 2023 23:20:43 +0000 (-0400) Subject: hopefully last merge fiasco cleanup X-Git-Url: http://these/git/%24%7BgetStaticDir%28%29%7D/styles/static/gitweb.css?a=commitdiff_plain;h=b3a25a3bb38ca6b80922a3472cfb96d91211c42c;p=lemmy-ui.git hopefully last merge fiasco cleanup --- diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 6019e4d..6f6e61c 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -589,7 +589,7 @@ function setupMarkdown() { defs: emojiDefs, }) .disable("image"); - var defaultRenderer = md.renderer.rules.image; + const defaultRenderer = md.renderer.rules.image; md.renderer.rules.image = function ( tokens: Token[], idx: number, @@ -608,6 +608,9 @@ function setupMarkdown() { const alt_text = item.content; return `${alt_text}`; }; + md.renderer.rules.table_open = function () { + return ''; + }; } export function getEmojiMart( @@ -1119,7 +1122,7 @@ export function personSelectName({ export function initializeSite(site?: GetSiteResponse) { UserService.Instance.myUserInfo = site?.my_user; - i18n.changeLanguage(getLanguages()[0]); + i18n.changeLanguage(); if (site) { setupEmojiDataModel(site.custom_emojis ?? []); }