Skip to content

Commit 0e6a941

Browse files
Don't keep link title either, text is generated outside of the link tag
1 parent 1bf9f69 commit 0e6a941

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ impl<'a, 'b, 'ids, I: Iterator<Item = Event<'a>>> Iterator for HeadingLinks<'a,
381381
_ => {}
382382
}
383383
match event {
384-
Event::Start(Tag::Link(_, _, text)) => self.buf.push_back(Event::Text(text)),
385-
Event::End(Tag::Link(..)) => {}
384+
Event::Start(Tag::Link(_, _, _)) | Event::End(Tag::Link(..)) => {}
386385
event => self.buf.push_back(event),
387386
}
388387
}

0 commit comments

Comments
 (0)