-
Notifications
You must be signed in to change notification settings - Fork 259
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
Fix empty line detection in markdown in list #188
Conversation
5827b8b
to
965f08a
Compare
Fix for independent issue in yuin#177 The next parser should have the whitespace removed, even when it's blank
965f08a
to
c53c1a4
Compare
Rebased, fixed the test so they actually test the bug |
@yuin planning to merge this? (sorry for pushing :D ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Straightforward change. I wish I could merge
@@ -164,6 +164,8 @@ func (b *listParser) Continue(node ast.Node, reader text.Reader, pc Context) Sta | |||
if node.ChildCount() == 1 && node.LastChild().ChildCount() == 0 { | |||
return Close | |||
} | |||
|
|||
reader.Advance(len(line)-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: A comment explaining "why" would be helpful here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm I already forgot :D it would get me a while to get into this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 That's why I write the "why" comments
thanks!! |
Fix for independent issue in #177
The next parser should have the whitespace removed, even when it's blank