-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 reader: taking an unusually long time during a certain kind of input #5166
Comments
some further tries seem to suggest it has something to do with its particular length rather than specific characters? as the conversion time gets back to normal when i inserted random characters into the paragraph... |
I can confirm even this with pandoc 2.5 takes way too long:
Yet it works fine with pandoc 2.4 |
If this is something that occurs in 2.5 but not
previous versions, then I suspect the following change
in the 2.5 chalnegolg:
Fix parsing of citations, quotes, and underline
emphasis after symbols. Starting with pandoc 2.4,
citations, quoted inlines, and underline emphasis were
no longer recognized after certain symbols, like
parentheses (#5099, #5053).
This could be verified by using nightlies produced
from before and after these changes.
|
@DaedlyKitten if you use
are causing the problem. It would be good to fix things so you don't get the slowdown even with |
@jgm thank you :) |
therefore reopening. |
A similar example from #7306, using
|
The following is a 104 KB txt file of merely repeating the same paragraph that after some trial and error I managed to isolate from a lengthy novel I initially wanted to convert into EPUB,
when converting this sample txt to a EPUB file, it will take an exceedingly very long time, approximately several minutes on my PC, when usually any other ~100kb txt file conversion takes less than 1 second.
This is the file and command I used:
pandoc.exe "%homepath%\Downloads\sample.txt" -o %homepath%\downloads\11111.epub
sample.txt
version info:
pandoc.exe 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.4
Default user data directory: C:\Users\konpo\AppData\Roaming\pandoc
Copyright (C) 2006-2018 John MacFarlane
The text was updated successfully, but these errors were encountered: