Skip to content

Commit

Permalink
don't process code blocks when scanning for links
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Jan 22, 2018
1 parent cfc9f5a commit 63811b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,6 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec<String> {
};
(*((*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);
Expand All @@ -1360,7 +1359,7 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec<String> {

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 {
Expand Down

0 comments on commit 63811b6

Please sign in to comment.