Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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")?;
inMdElem::read
to verify that (a) it correctly errors out without theflag, 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.