MacDownApp / MacDownApp/macdown

Right to left languages support

Open
#916 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hi, Thanks for this great software ❤️

I tried to use macDown to author a Persian text which is a right-to-left language (Hebrew and Arabic are RTL too). But it fails to render that correctly. This is the raw markdown:

```


سلام

ما اینجا **کد** داریم

* مورد

```php
for ($i=1; $i<=10; $i++) {
echo "hello";
}
*``` //remove the star
```

This will be rendered in Github as expected:

---


سلام

ما اینجا **کد** داریم

* مورد

```php
for ($i=1; $i<=10; $i++) {
echo "hello";
}
```

---

But in macDown it fails to format the text enclosed in `

` tag

screen shot 1396-10-29 at 12 41 27

---

This [link](https://gist.github.com/eladkarako/6eb6f783754ca1c2bb6bad6f4e5afb02#file-readme-md) may help about how to interpret `dir` and `align` attributes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Persian Markdown containing a dir='rtl' div in MacDown and compare its preview with the GitHub rendering shown in the issue. Trace the preview's handling of the HTML direction attribute; done means Hebrew, Arabic, and Persian content formats correctly while the existing code block and list remain intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, markdown
Domain
desktop, frontend, internationalization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.