Permalink
Browse files

Require a space before converting over atx headers.

  • Loading branch information...
1 parent 90032ce commit d2326c383650f430a27ebdba7f6462c05f7c6438 @joestump joestump committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/markdown2.py
View
2 lib/markdown2.py
@@ -1245,7 +1245,7 @@ def _setext_h_sub(self, match):
_atx_h_re = re.compile(r'''
^(\#{1,6}) # \1 = string of #'s
- [ \t]*
+ [ \t]+
(.+?) # \2 = Header text
[ \t]*
(?<!\\) # ensure not an escaped trailing '#'

2 comments on commit d2326c3

@laiwei

why require a space?

I see, in github`s markdown , does not require a space in headers.

@joestump
Collaborator

I cover this in my notes in the original pull request:
#90

Please sign in to comment.