You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a TOML block was found inside a Markdown blockquote, we would
report a TOML parse error. This is because we extracted the code block
directly from the original text and thus incorrectly included the `>`
characters.
So parsing
~~~
> This is a blockquote
>
> ```toml
> clap = { git = "https://github.com/clap-rs/clap/" }
> ```
~~~
would result in an error like this:
> README.md (line 22) ... TOML parse error: unexpected character
> found: `>` at line 1 column 1 in
>
> `> clap = { git = "https://github.com/clap-rs/clap/" }`
To fix this, we now parse the code blocks by listening to the `Start`
and `End` events from `pulldown-cmark`. This should be much more
robust.
Fixes#83.
This part of a readme
fails with
I'm not sure if it's a bug in your crate or in
pulldown-cmark
.As a workaround, would you be wiling to accept a PR that strips any leading
>
fromtoml
blocks?The text was updated successfully, but these errors were encountered: