mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 04:41:14 +00:00
Merge pull request #1448 from LemmyNet/remove_markdown_it_emoji
Commenting out markdown_it_emoji, because it breaks bolds.
This commit is contained in:
commit
cb5d20a775
1 changed files with 12 additions and 12 deletions
|
@ -7,7 +7,7 @@ import emojiShortName from "emoji-short-name";
|
||||||
import { CustomEmojiView } from "lemmy-js-client";
|
import { CustomEmojiView } from "lemmy-js-client";
|
||||||
import { default as MarkdownIt } from "markdown-it";
|
import { default as MarkdownIt } from "markdown-it";
|
||||||
import markdown_it_container from "markdown-it-container";
|
import markdown_it_container from "markdown-it-container";
|
||||||
import markdown_it_emoji from "markdown-it-emoji/bare";
|
// import markdown_it_emoji from "markdown-it-emoji/bare";
|
||||||
import markdown_it_footnote from "markdown-it-footnote";
|
import markdown_it_footnote from "markdown-it-footnote";
|
||||||
import markdown_it_html5_embed from "markdown-it-html5-embed";
|
import markdown_it_html5_embed from "markdown-it-html5-embed";
|
||||||
import markdown_it_sub from "markdown-it-sub";
|
import markdown_it_sub from "markdown-it-sub";
|
||||||
|
@ -79,19 +79,19 @@ export function setupMarkdown() {
|
||||||
typographer: true,
|
typographer: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const emojiDefs = Array.from(customEmojisLookup.entries()).reduce(
|
// const emojiDefs = Array.from(customEmojisLookup.entries()).reduce(
|
||||||
(main, [key, value]) => ({ ...main, [key]: value }),
|
// (main, [key, value]) => ({ ...main, [key]: value }),
|
||||||
{}
|
// {}
|
||||||
);
|
// );
|
||||||
md = new MarkdownIt(markdownItConfig)
|
md = new MarkdownIt(markdownItConfig)
|
||||||
.use(markdown_it_sub)
|
.use(markdown_it_sub)
|
||||||
.use(markdown_it_sup)
|
.use(markdown_it_sup)
|
||||||
.use(markdown_it_footnote)
|
.use(markdown_it_footnote)
|
||||||
.use(markdown_it_html5_embed, html5EmbedConfig)
|
.use(markdown_it_html5_embed, html5EmbedConfig)
|
||||||
.use(markdown_it_container, "spoiler", spoilerConfig)
|
.use(markdown_it_container, "spoiler", spoilerConfig);
|
||||||
.use(markdown_it_emoji, {
|
// .use(markdown_it_emoji, {
|
||||||
defs: emojiDefs,
|
// defs: emojiDefs,
|
||||||
});
|
// });
|
||||||
|
|
||||||
mdNoImages = new MarkdownIt(markdownItConfig)
|
mdNoImages = new MarkdownIt(markdownItConfig)
|
||||||
.use(markdown_it_sub)
|
.use(markdown_it_sub)
|
||||||
|
@ -99,9 +99,9 @@ export function setupMarkdown() {
|
||||||
.use(markdown_it_footnote)
|
.use(markdown_it_footnote)
|
||||||
.use(markdown_it_html5_embed, html5EmbedConfig)
|
.use(markdown_it_html5_embed, html5EmbedConfig)
|
||||||
.use(markdown_it_container, "spoiler", spoilerConfig)
|
.use(markdown_it_container, "spoiler", spoilerConfig)
|
||||||
.use(markdown_it_emoji, {
|
// .use(markdown_it_emoji, {
|
||||||
defs: emojiDefs,
|
// defs: emojiDefs,
|
||||||
})
|
// })
|
||||||
.disable("image");
|
.disable("image");
|
||||||
const defaultRenderer = md.renderer.rules.image;
|
const defaultRenderer = md.renderer.rules.image;
|
||||||
md.renderer.rules.image = function (
|
md.renderer.rules.image = function (
|
||||||
|
|
Loading…
Reference in a new issue