Skip to content

issue with properly converting RTL tables #176

@scudway

Description

@scudway

Describe the bug

word2md produces faulty rtl tables where it makes elements inside cells that are supposed to be aligned to the right side and makes them aligned to the left like LTR text would be. There is no issue with the text itself, but the direction is the problem. I'm no markdown specialist but I tried other doc to markdown converters and they got the tables right, so I checked the differences, and I found that at the header of the correct tables from other converters it says :

|**التنين**|**نوع الضرر**|**النفخة**|
| --- | --- | --- |
|أدهم|لاذع|5 × 30 قدم على خط مستقيم (تجربة تجربة)|
|أزرق|صاعق|5 × 30 قدم على خط مستقيم (تجربة تجربة)

where is word2md does it like this:

|**التنين**|**نوع الضرر**|**النفخة**|
| :- | :- | :- |
|أدهم|لاذع|5 × 30 قدم على خط مستقيم (تجربة تجربة)|
|أزرق|صاعق|5 × 30 قدم على خط مستقيم (تجربة تجربة)|

which as you can see the ":-" produces faulty direction from left to right whereas "---" does it right and gives elements that have a right to left direction.

I had to manually edit every table but that became cumbersome at a certain point, and I wanted to inform you of this which would do a great favor to the RTL community moving toward Markdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions