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

misformated markdown: po4a enters an endless loop #558

Open
Jibec opened this issue Mar 19, 2025 · 0 comments
Open

misformated markdown: po4a enters an endless loop #558

Jibec opened this issue Mar 19, 2025 · 0 comments

Comments

@Jibec
Copy link
Contributor

Jibec commented Mar 19, 2025

A misformatted markdown file creates an endless loop in po4a

code blocks are supposed to start and finish with three `

when a code blocks stops with only two `, it creates an infinite loop in po4a

I'm only using the markdown option:

[po4a_alias:markdown] text opt:"--option markdown"
[po4a_langs] fr
[po4a_paths] translation_files/$master/$master.pot $lang:translation_files/$master/$lang.po
[type: markdown] src/conduit/ADMIN.md $lang:translated/$lang/src/conduit/ADMIN.md opt:"--keep 0" pot=conduit

we can see the source file there: https://github.com/YunoHost-Apps/conduit_ynh/blob/b7d035627df5093f257f2b11992aab86cd5c3fad/doc/ADMIN.md

expected: po4a should continue processing (it can ignore the file with a log error or generate a buggy content, whatever you prefer)

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