If headers in file uses internal links (hence [[ ]]), the table of contents in the Obsidian Publish shows [[link]].
Steps to reproduce
Have the following in a file
## [[Poisson]] [[Distribution]]
And the publish the note.
Expected result
No double square bracket should be in the table of content.
Poisson Distribution
Actual result
The following is seen in the table of content
[[Poisson]] [[Distribution]]