hopefully last merge fiasco cleanup

This commit is contained in:
Alec Armbruster 2023-06-16 19:20:43 -04:00
parent fbc13249ca
commit b3a25a3bb3
No known key found for this signature in database
GPG key ID: 0BE3206ADE0F3B3B

View file

@ -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 `<img class="icon icon-emoji" src="${src}" title="${title}" alt="${alt_text}"/>`;
};
md.renderer.rules.table_open = function () {
return '<table class="table">';
};
}
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 ?? []);
}