Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(editor): render mixed RTL/LTR text with per-block direction (#9261)
AbdulrhmanKassemSallad3730f29f966
diff --git a/packages/ui/markdown/markdown.css b/packages/ui/markdown/markdown.cssindex 5b258bd17b..ed961e867b 100644--- a/packages/ui/markdown/markdown.css+++ b/packages/ui/markdown/markdown.css@@ -7,3 +7,10 @@.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;+}diff --git a/packages/views/editor/styles/prose.css b/packages/views/editor/styles/prose.cssindex 13aa26bf7b..30582e19b8 100644--- a/packages/views/editor/styles/prose.css+++ b/packages/views/editor/styles/prose.css@@ -38,6 +38,16 @@overflow-wrap: break-word;}+/* Bidirectional text (Arabic, Hebrew, Persian mixed with English). Each block+ takes its base direction from its own first strong character instead of the+ page, so an Arabic paragraph is right-aligned and keeps English words, paths+ and numbers in the right order, while English blocks stay left-aligned.+ `start` follows the resolved direction, so LTR-only content is unchanged. */+.rich-text-editor :is(p, li, h1, h2, h3, h4, h5, h6, blockquote) {+ unicode-bidi: plaintext;+ text-align: start;+}+/* Headings — compact but with clear visual hierarchy */.rich-text-editor h1 {font-size: var(--text-display-sm);