Skip to content

Commit

Permalink
Stop warning for mailto links
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Hewitt committed Nov 11, 2020
1 parent 6d4d01a commit 9be8cad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Writers/HTMLWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,9 @@ function fixlinks!(ctx, navnode, link::Markdown.Link)
fixlinks!(ctx, navnode, link.text)
Utilities.isabsurl(link.url) && return

# anything starting with mailto: doesn't need fixing
startswith(link.url, "mailto:") && return

# links starting with a # are references within the same file -- there's nothing to fix
# for such links
startswith(link.url, '#') && return
Expand Down

0 comments on commit 9be8cad

Please sign in to comment.