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 writer breaks math in multiline table #1911
Comments
It looks as if your source table is considerably wider than +++ bjpe [Jan 29 15 06:29 ]:
|
Thanks, that works for me. However, I realized two other things:
For the second, you may try the above input and the command |
Wrt the high memory usage - this might be the same as #1785 ? |
I'm not sure, I tried to create a profiling, but even on a 16-core machine with 32 GiB of RAM it finally failed:
Unfortunately, it didn't output anything to the profiling file. Maybe tracing down the control flow in the code may be a better option. |
Hi, using some
and the option
but you may even have a better solution. |
Thanks for taking the time to track this down, @bjpe. I don't have a better idea than fixing chop in the way you describe. |
I think the question is whether |
It looks like So rather than adjusting I can think of one more option in addition to your two:
The first option would just make blocks of width 0 disappear. Of course Probably the best approach would be 3, but this would require One might also consider whether the formula for calculating block widths |
Please take a look at https://github.com/bjpe/pandoc/tree/fix-aligned-tables where I compute the minimal width for a column to avoid line breaks inside single words. By the way, I also removed the line wrapping in tables when Note that I also added an error message for In addition, the pipeTable function in the Markdown writer, the Haddock writer and the RST writer share the same code, so they should be updated, too. |
Better late than never! I merged your code @bjpe. |
Thanks a lot :) |
Hi, I discovered that the Markdown writer breaks my Math code in a multiline table cell. For instance, consider the following markdown document:
When I convert this document using
I get the following result:
Here, the math macro
\leftarrow
is wrapped, which causes a error when converting the result document to HTML+Mathjax or PDF.I expected the Markdown writer to do no line wrapping, but a smarter wrapping strategy may also work. My pandoc version is
The text was updated successfully, but these errors were encountered: