Skip to content

Bug Report: RTL and LTR Language Mixing Issue #244

Closed

Description

@hmahdiany

Description: When writing documentation that includes both right-to-left (RTL) and left-to-right (LTR) languages, the text alignment and directionality are not handled correctly. This results in improper display and formatting when mixing RTL (e.g., Persian) with LTR (e.g., English) languages in the same line or paragraph.

Steps to Reproduce:

  1. Create a document with mixed RTL and LTR text. For example:
    دارم تست میکنم که ببینم راست چین و chapchean بودن درسته یا نه که دیدم درست نیست.
  2. View the rendered document.

Expected Behavior: The text should maintain proper alignment and directionality, where the RTL text is right-aligned, and the LTR text is embedded correctly within the RTL context.

Environment:
Version: v0.3.0
Operating System: Ubuntu 20.04

Additional Context: This issue affects documentation readability and can be problematic for users who need to include code snippets or technical terms in LTR languages within RTL text. It would be helpful if the tool could better handle mixed language content, similar to how some web browsers and editors handle it.

Activity

  1. ATofighi commented on Sep 3, 2024

    @ATofighi

    I think this PR can partially fix the problem: #206

  2. ATofighi commented on Oct 4, 2024

    @ATofighi

    @Philipinho can you see my PR for the issue? are you planning to support RTL or it's not in your roadmap for docmost?

  3. AsimNet commented on Jun 2, 2026

    @AsimNet

    +1 for RTL support.

    A resource that may be helpful for implementing and validating RTL support is:

    https://rtlstyling.com/posts/rtl-styling/

    It covers many real-world RTL challenges that documentation platforms face, including:

    • Mixed RTL/LTR content
    • Tables
    • Lists
    • Form controls
    • Alignment and spacing
    • Icons and directional UI
    • Common CSS pitfalls

    It's one of the best practical references I've found for building RTL-friendly interfaces.

    I'd be happy to help test RTL improvements in future releases.

  4. added 7 commits that reference this issue on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions