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

Fix empty line detection in markdown in list #188

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

karelbilek
Copy link
Contributor

@karelbilek karelbilek commented Jan 29, 2021

Fix for independent issue in #177

The next parser should have the whitespace removed, even when it's blank

Fix for independent issue in yuin#177

The next parser should have the whitespace removed, even when it's blank
@karelbilek karelbilek force-pushed the fix-nested-codeblock-empty branch from 965f08a to c53c1a4 Compare February 8, 2021 08:07
@karelbilek
Copy link
Contributor Author

Rebased, fixed the test so they actually test the bug

@karelbilek
Copy link
Contributor Author

@yuin planning to merge this? (sorry for pushing :D )

Copy link

@13rac1 13rac1 left a 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)
Copy link

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

Copy link
Contributor Author

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

Copy link

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

@yuin yuin merged commit 75d8cce into yuin:master Mar 26, 2021
@karelbilek
Copy link
Contributor Author

thanks!!

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

Successfully merging this pull request may close these issues.

3 participants