diff --git a/package.json b/package.json index 49e17f3b..b0f00ed2 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "markdown-it-ruby": "^0.1.1", "markdown-it-sub": "^1.0.0", "markdown-it-sup": "^1.0.0", + "markdown-it-bidi": "^0.1.0", "mini-css-extract-plugin": "^2.7.5", "register-service-worker": "^1.7.2", "run-node-webpack-plugin": "^1.3.0", diff --git a/src/shared/markdown.ts b/src/shared/markdown.ts index 0f01064d..38bf9d34 100644 --- a/src/shared/markdown.ts +++ b/src/shared/markdown.ts @@ -8,6 +8,7 @@ import { CustomEmojiView } from "lemmy-js-client"; import { default as MarkdownIt } from "markdown-it"; import markdown_it_container from "markdown-it-container"; // import markdown_it_emoji from "markdown-it-emoji/bare"; +import markdown_it_bidi from "markdown-it-bidi"; import markdown_it_footnote from "markdown-it-footnote"; import markdown_it_html5_embed from "markdown-it-html5-embed"; import markdown_it_ruby from "markdown-it-ruby"; @@ -170,7 +171,8 @@ export function setupMarkdown() { .use(markdown_it_html5_embed, html5EmbedConfig) .use(markdown_it_container, "spoiler", spoilerConfig) .use(markdown_it_ruby) - .use(localInstanceLinkParser); + .use(localInstanceLinkParser) + .use(markdown_it_bidi); // .use(markdown_it_emoji, { // defs: emojiDefs, // }); @@ -182,6 +184,7 @@ export function setupMarkdown() { .use(markdown_it_html5_embed, html5EmbedConfig) .use(markdown_it_container, "spoiler", spoilerConfig) .use(localInstanceLinkParser) + .use(markdown_it_bidi) // .use(markdown_it_emoji, { // defs: emojiDefs, // })