webern / cargo-readme

Generate README.md from docstrings
Other
360 stars 57 forks source link

Incorrect handling of 'should_panic' doctests #108

Open yesint opened 2 months ago

yesint commented 2 months ago

The doctests annotated with 'should_panic' are handled incorrectly:

//!  ```should_panic
...
//! ```

Is transformed to

```should_panic
...
```rust

While the correct would be

```rust
...
``` // no extra anotations here