Closed lostenderman closed 11 months ago
It seems that pdftex and luatex commands give different results regarding spacing when running the plain format:
Example (two spaces between the letters):
# a b
pdftex:
headingOne: a b
luatex:
headingOne: a b
Problem present on the main branch, but not on the commonmark one.
Investigating further...
First problematic commit is 45570939db76be6dcc18b12d9b23b7839d590413.
Interesting. On the first glance, disabling eager cache should have no effect whatsoever, because LuaTeX and pdfTeX runs in different temporary directories, so their caches / lack thereof should not interfere. I won't be able to investigate until later in July / early August, but I wonder why the unit tests would pass on the main branch and not here?
Is pdfTeX used to test unit tests on the main branch, in the last few runs I only see LuaTeX being used.
At this point, only LuaTeX is used both on the main branch nor in PRs. Therefore, I don't see why the main branch would be green, whereas this PR is failing the CI.
It should now be fixed to pass LuaTeX (which works as expected). The tests still needed a bit of fixing. Just the pdfTeX behaviour surprised me.
The current state of unit tests, where we only run LuaTeX, is a temporary solution to prevent the timeout of the CI service after merging the commonmark branch in https://github.com/Witiko/markdown/pull/226, which introduced 652 new unit tests. Before releasing 3.0.0-stable in the next couple of months, we will want to speed up the tests, see https://github.com/Witiko/markdown/issues/245. Afterwards, we will need to fix any regressions in formats other than LuaTeX that we have missed due to the partial testing. Therefore, this is an important discovery, although it is not necessary to solve it in this PR.
Adds:
Fixes: