Skip to content

Commit

Permalink
don't parse data:image
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Apr 21, 2024
1 parent 7e368d7 commit e8b5685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vault/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,9 @@ fn generic_link_constructor<T: ParseableReferenceConstructor>(
display_text,
}: RegexTuple,
) -> Option<Reference> {
if file_path.as_str().starts_with("http://") || file_path.as_str().starts_with("https://") {
if file_path.as_str().starts_with("http://")
|| file_path.as_str().starts_with("https://")
|| file_path.as_str().starts_with("data:") {
return None;
}

Expand Down

0 comments on commit e8b5685

Please sign in to comment.