rc markdown: Highlight HTML tags

This commit is contained in:
Lennard Hofmann 2021-01-05 19:09:33 +01:00
parent f65d5210f8
commit 61fabee03f

View File

@ -71,6 +71,11 @@ add-highlighter shared/markdown/url region -recurse \( ([a-z]+://|(mailto|magnet
add-highlighter shared/markdown/listblock/angle_bracket_url region (?<=<)([a-z]+://|(mailto|magnet|xmpp):) (?!\\).(?=>)|\n fill link
add-highlighter shared/markdown/listblock/url region -recurse \( ([a-z]+://|(mailto|magnet|xmpp):) (?!\\).(?=\))|\s fill link
try %{
require-module html
add-highlighter shared/markdown/tag region (?i)</?[a-z][a-z0-9-]*\s*([a-z_:]|(?=>)) > ref html/tag
}
add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono
# Setext-style header