jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.61k stars 3.38k forks source link

Stack overflow with very simple Django templates #4431

Closed golinski closed 6 years ago

golinski commented 6 years ago

When formatting the following very simple file:

~~~ {.djangotemplate}
{% if var %}
string
{% endif %}
~~~

I get the following errors:

$ pandoc-amd64-7d193b2aa/pandoc test.md
pandoc: Stack space overflow: current size 33624 bytes.
pandoc: Use `+RTS -Ksize -RTS' to increase it.
$ pandoc-amd64-7d193b2aa/pandoc +RTS -K1000000000 -RTS test.md
pandoc: Stack space overflow: current size 33624 bytes.
pandoc: Use `+RTS -Ksize -RTS' to increase it.

The second command takes significantly longer to finish. This is from in the development version of pandoc from 9 hours ago.

mb21 commented 6 years ago

Thanks, I assume the difference goes away with --no-highlight?

If so, this should be reported to https://github.com/jgm/skylighting

jgm commented 6 years ago

I opened an issue in jgm/skylighting.

jgm commented 6 years ago

OK, this is fixed if you compile against skylighting 0.7.0.2.

Arezohayeman commented 6 years ago

183ab26b4585238f49fd