johannhof / markdown.rs

Rust Markdown parsing library
Apache License 2.0
136 stars 44 forks source link

No error handling #19

Closed saschagrunert closed 4 years ago

saschagrunert commented 7 years ago

The crate should contain some basic error handling to avoid all these unwrap() calls.

johannhof commented 4 years ago

All unwraps are in places where if-conditions previously checked that it's safe to do so. I think the parsing/generating should stay infallible, anything else is a bug to fix, not something the consumer code should handle.