Exported markdown for Japanese contains escaped asterisks

I have an md file with this content

Enter the **Remote broker URI**.[test.md](test.md)

I push it to crowdin and translate the string to Japanese like this:

**リモートブローカーURI(リモートブローカーURI)**を入力します。[test.md](test.md)

In the exported Japanese markdown I see the * are being escaped:

\*\*リモートブローカーURI(リモートブローカーURI)\*\*を入力します。[test.md](test.md)

This makes those asterisk symbols to by outputed as is without turning to bold.

I think most likely the problem is on parsing side as markdown works notoriously bad with asian languages. The part )** causes the parser not recognize the ** as bold.

But why does not Crowdin preserve the string as it is?

I was planning to use GitHub - tats-u/markdown-cjk-friendly: Make CommonMark more friendly for Japanese/Chinese/Korean (CommonMark next specification draft)—plugins & patched packages · GitHub in my project to make such Japanese markdowns to be shown properly, but this crowdin problem prevents me to do this.

Hi @nogaman ,

I will check if there is a solution for this and get back to you,

@TaniaM could you please provide an estimate when crowdin team could take a look at this issue please?

Hi @nogaman !

We will consult with our team regarding the ETA and will come back with updates as soon as possible.

Will keep you posted :slight_smile:

Hi @nogaman ,

When Crowdin exports a file, it doesn’t paste the translation in as raw text. It parses each translation as Markdown under the CommonMark specification and then rebuilds the file from the result. In your string, the closing ** comes right after the full-width parenthesis “)” and right before “を”. CommonMark doesn’t allow bold to close in that position, so both pairs are treated as literal asterisks, and the export escapes them to keep them literal. Our Markdown export doesn’t support the CJK-friendly rules that markdown-cjk-friendly implements yet.

We’ve passed an improvement request to our team to add these rules to the Markdown export. This may take a while, so I can’t give you a timeline yet. In the meantime, please use an HTML tag in the translation instead of asterisks:

<strong>リモートブローカーURI(リモートブローカーURI)</strong>を入力します。

Inline HTML tags in translations are kept unchanged on export, so the text will show as bold in any Markdown renderer that allows inline HTML