“Fake” the headers (until Goldmark implements inline anchors properly).
Method 1: Add a shortcode:
in markdown
{{< anchor "anchortitle" >}}
in shortcode
<span id="{{ .Get 0 | urlize }}" class="inlineanchor"></span>
Design via .inlineanchor
.
Method 2: create a header that is hidden (bad coding, bad SEO, just for posterities sake):
in markdown
###### heading {#id .fakehiddenanchors}
in stylesheets
.fakehiddenanchors {
display: inline;
line-height:0;
... probably some more code to make it hidden enough.
}