jekyll-toc icon indicating copy to clipboard operation
jekyll-toc copied to clipboard

The toc is not clickable, the h-elements do not have the correct id

Open N7K4 opened this issue 4 years ago • 1 comments

The toc (<ul></ul>) is not clickable. The h-elements (h1, h2, h3 ...) do not have the correct id or the id is missing at all.

N7K4 avatar Apr 30 '20 07:04 N7K4

If content isn't rendered using {{ content | markdownify}} the h elements are not given an ID so the toc doesn't link correctly on click.

This would be a great addition if it could be added to the inject_anchors.

@N7K4 was this pull request adding h elements id's using inject_anchors? #109

codenitpicker avatar May 15 '20 11:05 codenitpicker