diff --git a/src/archive/mod.rs b/src/archive/mod.rs
index b6f9d8f..bf01924 100644
--- a/src/archive/mod.rs
+++ b/src/archive/mod.rs
@@ -28,7 +28,7 @@ pub fn read_dir(dir: &PathBuf) -> Vec<String> {
 
 /// Rewrite all URLs in `input` to the format `/s/<domain>/<path..>`
 fn internalize_urls(input: &str, base: &str) -> String {
-    let url_pattern = r#"(?:(https?://([a-zA-Z0-9.-]+))?(/[\w./-]*))"#;
+    let url_pattern = r#"(?<!<)(?:(https?://([a-zA-Z0-9.-]+))?(/[\w./-]*))"#;
     let re = regex::Regex::new(url_pattern).unwrap();
 
     re.replace_all(input, |caps: &regex::Captures| {