mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-09 18:06:45 +08:00
Arabic/Hebrew/Persian comments and descriptions that mix in English words, paths or numbers render left-aligned with scrambled word order, because every block inherits the page's LTR direction. Use `unicode-bidi: plaintext` so each paragraph, list item, heading and blockquote resolves its base direction from its own first strong character, and `text-align: start` so alignment follows it. Applied to .rich-text-editor (prose.css) and .markdown-content (markdown.css). LTR-only content resolves to LTR and is unchanged. Co-authored-by: Claude Opus 5.5 <[email protected]>
17 lines
380 B
CSS
17 lines
380 B
CSS
.markdown-content .katex-display {
|
|
margin: 0.75rem 0;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.markdown-content .katex-display > .katex {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Mixed RTL/LTR text: resolve each block's direction from its own content
|
|
(same rule as .rich-text-editor in prose.css). */
|
|
.markdown-content :is(p, li) {
|
|
unicode-bidi: plaintext;
|
|
text-align: start;
|
|
}
|