Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
FYI: another extra for managing headers #70
In a project I'm working on, I wanted to be able to capture twitter-style hash tags, but still have markdown format. However, if the #tag was the first thing on a line, it would match the header regex, which wasn't what I wanted. So, now when the extra 'tag-friendly-headers' is passed, whitespace is now required between the opening # and the rest of the header. Otherwise, the #tag is left as-is.
w/ my extra: #tag
w/ my extra:
Interestingly, this change doesn't break any of the tests... nor is it explicitly dealt with in Gruber's syntax sheets (that I know of).
Feel free to accept or reject the pull as you'd like.
Requires white-space between "#" and the header in order to qualify as a "<h?>"
This lets us include hash-tags (#tagname) as the first item on a line and have it not converted to a <h?>