Closed prowlett closed 2 months ago
I get the same thing with standard plasTeX, so I think this broke there. I'll see if I can work out a fix.
It looks like the problem is only in the HTML5 renderer: the XHTML renderer makes the link properly. So I'm confident this can be fixed.
OK, I've made a PR to plasTeX: https://github.com/plastex/plastex/pull/363.
Until that's accepted, there's one bit which we could take into Chirun as an override, but there's another bug to do with labelling non-numbered sections which is in the core of plasTeX.
I've switched Chirun to require my forked branch of plasTeX because I've been through moving our overrides out of Chirun and now have 16 open PRs in the plasTeX repository! So I'm going to close this, because Chirun is using the fix.
I have some code like this to do an in-page link iff we're on the web version of this page.
It produces HTML like this:
The problem is that the heading 'Data sets' is not given the label 'datasets' and the link, instead of going to
#datasets
it spits out some Markdown into thehref
attribute.Last year, chirun produced an
id="datasets"
at the\label
and did this for the\ref
: