tania
1
Hi!
I have issue when using blackfriday’s extensionmask.
Here is my config in config.toml
[blackfriday]
extensionmask = ["autoHeaderIds"]
But, content headers generate autoid “toc_0” for html…
Please let me know kindly what I am wrong.
Thanks
zwbetz
2
It should be extensionsmask
not extensionmask
.
So your headings have id="toc_0"
, etc. – did you want them to have no id
at all?
zwbetz
3
There is likely a better way to handle this, but if you wanted no id
at all, you could do this in your templates:
{{ $pattern := " id=\"toc_.+\"" }}
{{ $replacement := "" }}
{{ $content := replaceRE $pattern $replacement .Content }}
{{ $content | safeHTML }}
1 Like