Open yazshel opened 8 years ago
Uh... there is a bug when rendering not in preview: a-heading-containing-a-link-to-an-external-site-http-www-externalsite-com-
vs a-heading-containing--a-link-to-an-external-site--http---wwwexternalsitecom--
(the double --
is converted in a single -
in the id. I will see if I can fix it
As it turned out this is a problem of older version of Jingo. The current version (1.6.1) doesn't suffer of that problem :)
Hi, sorry but I'm a bit confused - you seem to be talking about the IDs that get generated? This is not the issue - the issue is that the rendered TOC link contains: <a href="http://www.externalsite.com/">a link to an external site</a>
I would expect the "a link to an external site" text from the TOC link to still link to <a href="#a-heading-containing-a-link-to-an-external-site-http-www-externalsite-com-">
like the rest of the TOC entry.
I've verified just now that this is still a problem on the current master
branch of your Jingo repository.
Ah, I see what you mean. I was distracted by a different bug on the same context :D
And you're right, we should remove any link from any TOC entry. Reopening.
If I add this markdown to a wiki article:
generates the following HTML (taken from the preview window):
While the link in the h1 was expected, I would expect clicking anywhere on the TOC entry should take me to that heading in the wiki article.
Maybe any links could be stripped from a heading when building its related TOC entry?