Highlight footnote-style hyperlinks.
As well as the traditional `[text](url)` syntax, Markdown allows the text to be followed by a tag in square brackets. If the text is followed by nothing at all, then the tag for that link is the text itself. The actual URL is supplied later in the document, like a footnote at the bottom of the page: Some text with [a link][tag] and [another link]. [tag]: http://www.example.com/link1 [another link]: http://www.example.com/link2 This adds the "link" face to the URL in such footnote lines.
This commit is contained in:
parent
e66073bc94
commit
78f1e1ca98
|
@ -52,6 +52,7 @@ add-highlighter shared/markdown/content regex [^_](_([^\s_]|([^\s_][^_]*[^\s_]))
|
||||||
add-highlighter shared/markdown/content regex [^*](\*\*([^\s*]|([^\s*][^*]*[^\s*]))\*\*)[^*] 1:bold
|
add-highlighter shared/markdown/content regex [^*](\*\*([^\s*]|([^\s*][^*]*[^\s*]))\*\*)[^*] 1:bold
|
||||||
add-highlighter shared/markdown/content regex [^_](__([^\s_]|([^\s_][^_]*[^\s_]))__)[^_] 1:bold
|
add-highlighter shared/markdown/content regex [^_](__([^\s_]|([^\s_][^_]*[^\s_]))__)[^_] 1:bold
|
||||||
add-highlighter shared/markdown/content regex <(([a-z]+://.*?)|((mailto:)?[\w+-]+@[a-z]+[.][a-z]+))> 0:link
|
add-highlighter shared/markdown/content regex <(([a-z]+://.*?)|((mailto:)?[\w+-]+@[a-z]+[.][a-z]+))> 0:link
|
||||||
|
add-highlighter shared/markdown/content regex ^\[[^\]\n]*\]:\h*([^\n]*) 1:link
|
||||||
add-highlighter shared/markdown/content regex ^\h*(>\h*)+ 0:comment
|
add-highlighter shared/markdown/content regex ^\h*(>\h*)+ 0:comment
|
||||||
add-highlighter shared/markdown/content regex \H\K\h\h$ 0:PrimarySelection
|
add-highlighter shared/markdown/content regex \H\K\h\h$ 0:PrimarySelection
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user