From 9be8cad0e603c818e8475651f5eeaacb8133f545 Mon Sep 17 00:00:00 2001 From: Charlie Hewitt Date: Tue, 10 Nov 2020 16:56:36 +0000 Subject: [PATCH] Stop warning for mailto links --- src/Writers/HTMLWriter.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Writers/HTMLWriter.jl b/src/Writers/HTMLWriter.jl index c46e776615..ba508fa96d 100644 --- a/src/Writers/HTMLWriter.jl +++ b/src/Writers/HTMLWriter.jl @@ -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