Skip to content

Code block direction in RTL interface #4809

@merrime-n

Description

@merrime-n

Describe the Bug

When we create a code block in a RTL page and modify its direction to LTR, it looks flawless in the editing mode. But when we save the document, it goes RTL and is not properly readable.

Steps to Reproduce

  1. Go to an RTL interface.
  2. Create a code block in a page.
  3. In edit mode, make it left to right.
  4. Save the page.
  5. See? It is right to left.

Expected Behaviour

The code is expected to be rendered left to right regardless of the interface language.

Screenshots or Additional Context

Capture

Browser Details

Google Chrome Version 104.0.5112.102 (Official Build) (64-bit) On Windows 10

Exact BookStack Version

BookStack v23.12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions