Closed max-heller closed 3 months ago
Thanks a lot for reporting! It's good that the new release is incrementing the minor version to indicate a breaking release, so fewest users should get surprised by this. If there is demand, v0.14 could also be yanked though until there is a fix.
This is probably related to #71, so just in case I CC @SichangHe.
I think I know what I messed up. Please wait a bit for a fix PR.
A new release is now available here: https://github.com/Byron/pulldown-cmark-to-cmark/releases/tag/v14.0.1
In the following test, a
#
in a code block is escaped bycmark_with_source_range_and_options
when no range is provided even though the contents of code blocks should be treated as verbatim."#; let iter = pulldown_cmark::Parser::new(input); let mut output = String::new(); pulldown_cmark_to_cmark::cmark_with_source_range_and_options( iter.map(|e| (e, None)), input, &mut output, Default::default(), ) .unwrap(); assert_eq!(input, output); }
Note the
\\#