Closed Atcold closed 2 months ago
err... that's odd. As you say: the markdown looks correct and the generated html is wrong. I'll see if I can trace what happened..
the system should drop the .md and link to https://www.learnlatex.org/it/help which seems to work in other languages.
@Atcold The link now works as I removed the explicit .md
from the markdown link (as was already done in the de
German version of this page). The .md
extension is supposed to get stripped automatically (or more exactly changed to .html
which is then droppable) but it wasn't working here.
I may leave this open and try to work out what happened, or I may close if it looks like taking too much time to trace.
I just added
1 [test1](help.md)
2 [test
2](help.md)
3 [test
3](help)
test1 works (and is like en and fr versions)
test2 fails (and matches how the Italian page was, with a line break)
and test 3 works (which matches how the page is now)
So it's an "undocumented feature" of the Jekyll processing that the line break in the link text source affects the processing of the extension in the link path.
I will remove the test links and close this as not our fault :-)
Thanks for the report.
Wow, it's impressive to follow your mental reasoning process! 🔥 Also, that's why my text editor uses soft-wraps 🥲
The last paragraph of https://www.learnlatex.org/it/lesson-02 points to a
help.md
file:while all the other languages point to
/<language>/help
. For example, the English https://www.learnlatex.org/en/lesson-02 has the following paragraph:Therefore, the Italian translation will make the user navigate to the inexistent https://www.learnlatex.org/it/help.md, while the English version will have the correct link https://www.learnlatex.org/en/help.
Looking at the source code for the English version, we can see:
which is consistent with what's done in Italian:
So, I'm not sure what's going on here. Hence, the lack of a PR from my side.