Instead of a single hash in the left gutter, draw <n> hashes where <n> is the heading level. All of these hashes are part of the anchor text.
Set params.renderHeadingAnchors = false to disable for a whole page. Set the element attribute anchor = false to disable for a single heading.