rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 262 forks source link

Qualify slugs with those from parent headings #33

Closed malthe closed 10 years ago

malthe commented 10 years ago

In the example below, the <h2> element would get an id "hello-one-two-three".

<div><h1>Hello</h1><h2>One Two &amp; Three</h2>

This solves a problem where headings with the same text would get the same id (which is invalid and breaks navigation).

michael-jackson-eating-popcorn-o

This closes https://github.com/rstacruz/flatdoc/issues/32.

rstacruz commented 10 years ago

Yes!

rstacruz commented 10 years ago

You seem to be on a roll here — would you like to help out in maintaining this project?

malthe commented 10 years ago

Just a few simple patches ;-) ... But thanks!