Skip to content

Fix SUMMARY's parse_numbered with comment#1167

Merged
ehuss merged 1 commit into
rust-lang:masterfrom
dalance:fix_summary_comment
Mar 18, 2020
Merged

Fix SUMMARY's parse_numbered with comment#1167
ehuss merged 1 commit into
rust-lang:masterfrom
dalance:fix_summary_comment

Conversation

@dalance
Copy link
Copy Markdown
Contributor

@dalance dalance commented Mar 17, 2020

This PR fixes #1096.

If SUMMARY contains comment like below:

- [First](./first.md)
<!-- this is a comment -->
- [Second](./second.md)

- [Second] generate Event::Start(Tag::List(..)), but items is empty because it is not nested.
The empty can be ignored.

Comment thread src/book/summary.rs Outdated
Comment on lines 380 to 382
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you add a comment here explaining why it is doing this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
I added a comment.

@dalance dalance force-pushed the fix_summary_comment branch from 6c4d0c2 to b82562f Compare March 18, 2020 03:28
Copy link
Copy Markdown
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ehuss ehuss merged commit 88684d8 into rust-lang:master Mar 18, 2020
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
Fix SUMMARY's parse_numbered with comment
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.

SUMMARY.md can no longer contain HTML comments

2 participants