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

Markdown tables not parsed properly #496

Closed
NightTsarina opened this issue Apr 23, 2024 · 0 comments
Closed

Markdown tables not parsed properly #496

NightTsarina opened this issue Apr 23, 2024 · 0 comments

Comments

@NightTsarina
Copy link

Hi,

Today I noticed that po4a is breaking tables created using the GitHub MarkDown format:

$ cat foo.md 
| Head 1 | Head 2 |
| ------ | ------ |
| Cell 1 | Cell 2 |

$ po4a-updatepo --no-deprecation -M UTF-8 -f text -o markdown --wrap-po=newlines -m foo.md -p foo.pot

$ tail -n5 foo.pot 
#. type: Plain text
#: foo.md:3
#, markdown-text
msgid "| Head 1 | Head 2 | | ------ | ------ | | Cell 1 | Cell 2 |"
msgstr ""

$ po4a-translate --no-deprecation -M UTF-8 -f text -o markdown -k 0 -m foo.md -p foo.pot -l foo_translated.md

$ cat foo_translated.md 
| Head 1 | Head 2 | | ------ | ------ | | Cell 1 | Cell 2 |

I understand this is not part of the base MD spec, and that it might be difficult to support, but I can't even find a way to tell po4a to not re-flow the block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant