mondeja / mdpo

Markdown files translation using GNU PO files
https://mondeja.github.io/mdpo/
BSD 3-Clause "New" or "Revised" License
25 stars 6 forks source link

Add option to respect original Markdown raw format in po2md #152

Open dingyifei opened 3 years ago

dingyifei commented 3 years ago

The numerical list turned to 1.1.1.1... in 0.3.56, which doesn't exist in 0.3.19 (which I've used in the past) 图片

(The render is still correct, it's just the raw markdown being different)

dingyifei commented 3 years ago

Additionally, I find it reformating the tables and adding empty lines. ( I'm not sure it is the intended behavior.) The output tables 图片

The output with extra empty lines 图片 The original file 图片

mondeja commented 3 years ago

Pull requests are welcome. Two outputs in all cases provides the same HTML AST, so I'm not worried about it. This issue is the same as the closed #92

It would be useful a disabled by default option --raw-format/raw_format to respect the original Markdown formatting.

mondeja commented 3 years ago

From a technical perspective, I found this impossible to implement if MD4C parser doesn't include information about syntax. I've created an Implementation notes section in documentation to track all differences in syntax defined by mdpo for technical reasons and parser limitations that should be completed by who would want to implement this feature.