Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dingyifei opened this issue Jul 10, 2021 · 3 comments
Open

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

dingyifei opened this issue Jul 10, 2021 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed rendering-format Some related with a problem with rendering format

Comments

@dingyifei
Copy link

dingyifei commented Jul 10, 2021

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
Copy link
Author

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
Copy link
Owner

mondeja commented Jul 10, 2021

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 mondeja changed the title Bug: po2md bad numerical list output Add option to respect original Markdown raw format in po2md Jul 10, 2021
@mondeja mondeja added enhancement New feature or request help wanted Extra attention is needed rendering-format Some related with a problem with rendering format labels Jul 10, 2021
@mondeja
Copy link
Owner

mondeja commented Aug 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed rendering-format Some related with a problem with rendering format
Projects
None yet
Development

No branches or pull requests

2 participants