dreverri / gollum-site

Static Site Generator for Gollum Wikis
254 stars 28 forks source link

Header anchors not generated #31

Open tjacobs2 opened 11 years ago

tjacobs2 commented 11 years ago

When generating sites using gollum-site generate, the resulting HTML doesn't contain anchors that are nested within headers. This seems to be a problem with gollum-site, not gollum-lib. The result is that my table of contents pages don't work.

Example:

Wiki markdown:

##Test Header

Gollum-site generated html

<h2>Test Header</h2>

Gollum-lib generated html (simple ruby script that just dumps Gollum::Page::formatted_data)

<h2>Test Header<a class="anchor" id="Test-Header" href="#Test-Header"></a></h2>

Due to the fact that the formatted-data is correct, my suspicion is that this is a result of the sanitization being done by gollum-site.