Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in parsing of headers #729

Closed
eGavr opened this issue Mar 20, 2016 · 4 comments
Closed

Bug in parsing of headers #729

eGavr opened this issue Mar 20, 2016 · 4 comments

Comments

@eGavr
Copy link

eGavr commented Mar 20, 2016

Hi!

I have such a markdown:

#h1

####### h2

Calling of marked.lexer returns such tokens

{ type: 'paragraph', text: '#h1' }
{ type: 'paragraph', text: '####### h2' }

But github displays h1 and h2 as headings, not as paragraph.

This case works fine in 0.3.3 and is broken since 0.3.4.

Thank you!

@edsadr
Copy link

edsadr commented Nov 10, 2016

having the same issue in 0.3.6

@joshbruce
Copy link
Member

See #981

@Feder1co5oave
Copy link
Contributor

Only up to 6 hashes are allowed for headings, so ####### h2 is not valid.
You always need space between the # and the text.

@joshbruce
Copy link
Member

Surprised I didn't catch the no space part of this...I did with the hashtag submission though; so, at least I'm not completely slacking. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants