I'm looking to recreate the page anchor feature in GitHub, where all the headings automatically get page anchors.
I've already created my own table of contents so this other issue doesn't apply. I just want
<a name="getting-started">...</a> in my headings.
I've also been scanning the Redcarpet repo for related issues, and found two. As a result, I've created a custom
Redcarpet::Render for this purpose (based on this gist). When run on its own, it works great. But I can't get Middleman to use it.
tl;dr How do I get Middleman to use my custom Redcarpet renderer for creating Github-style page anchors on all my generated pages?
Here's my config:
set :markdown_engine, :redcarpet
set :markdown, :tables => true, :autolink => true, :gh_blockcode => true, :fenced_code_blocks => true, :with_toc_data => true