Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Require a space before converting over atx headers.

  • Loading branch information...
commit d2326c383650f430a27ebdba7f6462c05f7c6438 1 parent 90032ce
Joe Stump joestump authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/markdown2.py
2  lib/markdown2.py
View
@@ -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.

Joe Stump
Collaborator

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

Please sign in to comment.
Something went wrong with that request. Please try again.