···11-use pulldown_cmark::{BrokenLink, BrokenLinkCallback, CowStr, Event, Options, Parser};
11+use mdbook_markdown::pulldown_cmark::{
22+ BrokenLink, BrokenLinkCallback, CowStr, Event, Options, Parser,
33+};
24use tap::Pipe;
3544-use mdbookkit::markdown::mdbook_markdown_options;
66+use mdbookkit::markdown::default_markdown_options;
5768pub fn stream(text: &str, options: Options) -> MarkdownStream<'_> {
79 Parser::new_with_broken_link_callback(text, options, Some(ItemLinks))
···1214/// [`BrokenLinkCallback`] implementation that unconditionally converts all "broken"
1315/// links to links to be further processed.
1416///
1515-/// "Broken" links are links like `[text][link::item]` that don't have associated URLs,
1616-/// which are actually exactly what [rustdoc_link][super] wants.
1717+/// "Broken" links are links like `[text][link::item]` that don't have associated URLs
1818+/// that are expected for this preprocessor.
1719///
1820/// Links that are "broken" that aren't actually doc links won't show up in the output,
1921/// because the preprocessor ignores links that cannot be parsed and is capable of
···2325impl ItemLinks {
2426 // Explicitly disable smart punctuation to prevent quotes from being changed
2527 // or else things like lifetimes may become invalid
2626- const OPTIONS: pulldown_cmark::Options =
2727- mdbook_markdown_options().intersection(Options::ENABLE_SMART_PUNCTUATION.complement());
2828+ const OPTIONS: Options =
2929+ default_markdown_options().intersection(Options::ENABLE_SMART_PUNCTUATION.complement());
2830}
29313032impl<'input> BrokenLinkCallback<'input> for ItemLinks {