resolve paths when cleaning docs

This commit is contained in:
QuietMisdreavus 2017-12-22 13:12:54 -06:00 committed by Manish Goregaokar
parent 76f831647a
commit c3d0d5a4bb
3 changed files with 45 additions and 5 deletions

View file

@ -1169,6 +1169,8 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec<String> {
let s = unsafe { (*link).as_bytes() };
let s = str::from_utf8(&s).unwrap().to_owned();
debug!("found link: {}", s);
links.push(s);
}
@ -1214,6 +1216,7 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec<String> {
for ev in iter {
if let Event::Start(Tag::Link(dest, _)) = ev {
debug!("found link: {}", dest);
links.push(dest.into_owned());
}
}