From 63811b66f676c1971b15452946bad35223b8c403 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Mon, 22 Jan 2018 17:04:55 -0600 Subject: [PATCH] don't process code blocks when scanning for links --- src/librustdoc/html/markdown.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index b0cfd12c27ab7..dce0c4b001a0d 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -1337,7 +1337,6 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec { }; (*((*renderer).opaque as *mut hoedown_html_renderer_state)).opaque = &mut opaque as *mut _ as *mut libc::c_void; - (*renderer).blockcode = Some(hoedown_block); (*renderer).header = Some(hoedown_header); (*renderer).codespan = Some(hoedown_codespan); (*renderer).link = Some(hoedown_link); @@ -1360,7 +1359,7 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec { let p = Parser::new_ext(md, opts); - let iter = Footnotes::new(CodeBlocks::new(HeadingLinks::new(p, None))); + let iter = Footnotes::new(HeadingLinks::new(p, None)); let mut links = vec![]; for ev in iter {