-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I have two spots in the code that I wasn't able to produce cases for. I suspect these can't happen, but just in case, I'm going to put basically an overridable panic of sorts. By default, hitting either of these cases will result in an error; but if you provide the hidden `--allow-unknown-markdown` flag, we'll just ignore them. I can't test this (if I knew how to hit these branches, I wouldn't need it!), but I manually added a `lookups.unknown_markdown("testing")?;` in `MdElem::read` to verify that (a) it correctly errors out without the flag, and (b) it correctly succeeds with the flag. As part of this, I added better handling for the Err case of `MdElem::read`. Also, replace a TODO with a reference to #84. This PR removes all the TODOs for #11. Once it gets merged, I'll check the last checkbox on that ticket and manually close it.
- Loading branch information
Showing
4 changed files
with
112 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters