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

gfm: line wrapping interaction with hard_line_breaks #8035

Closed
arcnmx opened this issue Apr 22, 2022 · 1 comment
Closed

gfm: line wrapping interaction with hard_line_breaks #8035

arcnmx opened this issue Apr 22, 2022 · 1 comment
Labels

Comments

@arcnmx
Copy link
Contributor

arcnmx commented Apr 22, 2022

Explain the problem.

Newlines generated due to --wrap=auto mangle the output when combined with +hard_line_breaks:

$ for i in {0..20}; do echo hello; done | pandoc -f gfm -t gfm+hard_line_breaks
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello
$ for i in {0..20}; do echo hello; done | pandoc -f gfm -t markdown+hard_line_breaks
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello

Using --wrap=preserve is even worse!

Pandoc version?

pandoc 2.17.1.1
Compiled with pandoc-types 1.22.1, texmath 0.12.4, skylighting 0.12.3, citeproc 0.6.0.1, ipynb 0.2

EDIT: sorry, just realised my version is out of date - I'd appreciate if someone with 2.18 could let me know if this is no longer relevant

@arcnmx arcnmx added the bug label Apr 22, 2022
@jgm jgm closed this as completed in ef69474 Apr 23, 2022
@jgm
Copy link
Owner

jgm commented Apr 23, 2022

Still relevant with 2.18 - but now fixed in HEAD.

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

No branches or pull requests

2 participants