Gatsby generates permalinks header-a for the first one, and header-a-1 for the third one.
However, when using this plugin (and with the default from-header: 2), the generated TOC has link header-a for the third header (while it should be header-a-1).
I'm not sure if this can be fixed here or if it has to be fixed upstream at mdast-util-toc.
Simple example:
Gatsby generates permalinks
header-a
for the first one, andheader-a-1
for the third one. However, when using this plugin (and with the defaultfrom-header: 2
), the generated TOC has linkheader-a
for the third header (while it should beheader-a-1
).I'm not sure if this can be fixed here or if it has to be fixed upstream at mdast-util-toc.
See also: https://github.com/leic-pt/resumos-leic/issues/1021