docco icon indicating copy to clipboard operation
docco copied to clipboard

New sections for headers, bug if headers are marked up with ##'s

Open kelleyvanevert opened this issue 12 years ago • 2 comments

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

kelleyvanevert avatar Mar 27 '13 19:03 kelleyvanevert

Fancy turning this into a pull request? That way you'll get listed as a contributor, which is obviously awesome!

keithamus avatar Mar 27 '13 22:03 keithamus

Will do

kelleyvanevert avatar Mar 27 '13 23:03 kelleyvanevert