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

adding supporte for draft chapter #9

Closed
Tudyx opened this issue Nov 19, 2022 · 1 comment
Closed

adding supporte for draft chapter #9

Tudyx opened this issue Nov 19, 2022 · 1 comment

Comments

@Tudyx
Copy link
Contributor

Tudyx commented Nov 19, 2022

mdbook allows you to define draft chapter in your summary.

But currently if you have a draft chapter and we use mdbook-quiz we panic because of this line https://github.com/willcrichton/mdbook-quiz/blob/main/src/processor.rs#L207

As a minimal reproduction case, we can simply use the example provided in this repository and add this line to SUMMARY.md :

# Summary

- [Chapter 1](./chapter_1.md)
- [Chapter 2]()

I think the simple fix would be doing only treat the case were the option is Some using a if let Some construct.

@Tudyx Tudyx changed the title adding supporte for draft chappter adding supporte for draft chapter Nov 19, 2022
@willcrichton
Copy link
Collaborator

Closed by #10.

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

2 participants