yoshuawuyts / vmd

:pray: preview markdown files
MIT License
1.18k stars 111 forks source link

Fixed the header rendering to match that of GFM #110

Closed vwal closed 7 years ago

vwal commented 7 years ago

Removed an extraneous ? from the header regex. GFM does not render headers if there's no space between the hash(es) and the text. In other words:

#header

is rendered as:

header

Whereas:

# header

is rendered as:

header

With this change vmd complies with the GFM also in this regard.

maxkueng commented 7 years ago

Cool! It appears that GitHub changed how it renders the headings. In issue #90 we actually added support for headings without spaces after the hashes because GitHub supported it even though it wasn't totally correct markdown.

I added a comment. Maybe you can take a look at it.