mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Add RTL/BIDI to post text (#1963)
This commit is contained in:
parent
42d60fe3d5
commit
f5780c22ba
2 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
// })
|
||||
|
|
Loading…
Reference in a new issue