docco
docco copied to clipboard
New sections for headers, bug if headers are marked up with ##'s
Hi there!
Line 140 of docco.litcoffee ensures that headers get their own section:
save() if /^(---+|===+)$/.test line
However, when headers are marked up with ##'s instead of ---'s or ==='s, it fails. The easy and obvious fix is to add the following line, right after:
save() if /^\s*#{1,6}/.test line
Cheers! — Kelley
Fancy turning this into a pull request? That way you'll get listed as a contributor, which is obviously awesome!
Will do