I am trying to build a site with some internal cross-links, but I am finding myself blocked by the link-checker. It does not appear to recognise anchors which are specified in HTML blocks, even when that HTML block is being correctly incorporated into the output.
Consider for instance:
[Link to Section One](#section-one)
[Link to Section Two](#section-two)
# Section One
Section One text
<h1 id="section-two">Section Two</h1>
which fails with
Error: The anchor in the link `@/blog/first.md#section-two` in content/blog/first.md does not exist.
My actual use case is slightly more complex than this so the obvious fix (don’t use the <h1>
tags!) doesn’t work. I have generated the markdown that I want zola to use with pandoc, as this can generate a formatted bibliography for me. The commonmark that it generates produces markdown links to anchors which are specified in <div>
tags.
I have investigated skip-anchor-prefixes
(all the anchors do have a common prefix) but I think this only works for external links.
Is this expected behaviour? It is possible to disable the link checker on certain links?