~~ use pulldown_cmark::{Event, Options, Parser, Tag, html};~- // Rewrite relative image URLs to the raw file serving route so- // that images committed alongside the README render correctly.+ // Rewrite relative image and link URLs to the raw file serving+ // route so that assets committed alongside the README work.~ let mut rendered = String::new();~ let events = Parser::new_ext(text, Options::empty()).map(|event| match event {~ Event::Start(Tag::Image {~ _ => dest_url,~ };~ Event::Start(Tag::Image {+ link_type,+ dest_url,+ title,+ id,+ })+ }+ Event::Start(Tag::Link {+ link_type,+ dest_url,+ title,+ id,+ }) => {+ let dest_url = match &head_sha {+ Some(sha) if is_relative_url(&dest_url) => {+ format!("{}/{}/commits/{}/raw/{}", crate::base_url(), name, sha, dest_url).into()+ }+ _ => dest_url,+ };+ Event::Start(Tag::Link {~ link_type,~ dest_url,~ title,