2016-03-02 20:49:58 +01:00
|
|
|
syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
|
2013-06-01 22:59:28 +02:00
|
|
|
|
2016-02-28 14:15:46 +01:00
|
|
|
# Tables (Github extension)
|
|
|
|
color cyan ".*[ :]\|[ :].*"
|
|
|
|
|
|
|
|
# quotes
|
2018-08-09 10:09:19 +02:00
|
|
|
color black start="^>" end="^$"
|
|
|
|
color black "^>.*"
|
2016-02-28 14:15:46 +01:00
|
|
|
|
2013-06-01 22:59:28 +02:00
|
|
|
# Emphasis
|
|
|
|
color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
|
|
|
|
|
|
|
|
# Strong emphasis
|
2018-08-09 10:09:19 +02:00
|
|
|
color green "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
|
2013-06-01 22:59:28 +02:00
|
|
|
|
2016-02-28 14:15:46 +01:00
|
|
|
# strike-through
|
|
|
|
color red "(^|[[:space:]])~~[^ ][^~]*~~"
|
|
|
|
|
|
|
|
# horizontal rules
|
2018-08-09 10:09:19 +02:00
|
|
|
color magenta "^(---+|===+|___+|\*\*\*+)\s*$"
|
2016-02-28 14:15:46 +01:00
|
|
|
|
|
|
|
# headlines
|
2018-08-09 10:09:19 +02:00
|
|
|
color magenta "^#{1,6}.*"
|
2016-02-28 14:15:46 +01:00
|
|
|
|
|
|
|
# lists
|
2013-06-01 22:59:28 +02:00
|
|
|
color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
|
2016-02-28 14:15:46 +01:00
|
|
|
|
|
|
|
# leading whitespace
|
2013-06-01 22:59:28 +02:00
|
|
|
color black "^[[:space:]]+"
|
|
|
|
|
2016-02-28 14:15:46 +01:00
|
|
|
# misc
|
|
|
|
color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
|
|
|
|
|
|
|
|
# links
|
2018-08-09 10:09:19 +02:00
|
|
|
color blue "\[[^]]+\]"
|
|
|
|
color blue "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
|
2016-02-28 14:15:46 +01:00
|
|
|
|
|
|
|
# images
|
|
|
|
color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
|
|
|
|
|
|
|
|
# urls
|
2018-08-09 10:09:19 +02:00
|
|
|
color yellow "https?://[^ )>]+"
|
2016-02-28 14:15:46 +01:00
|
|
|
|
|
|
|
# code
|
|
|
|
color yellow "`[^`]*`|^ {4}[^-+*].*"
|
|
|
|
# code blocks
|
|
|
|
color yellow start="^```[^$]" end="^```$"
|
|
|
|
color yellow "^```$"
|
2016-12-06 22:06:12 +01:00
|
|
|
|
|
|
|
## Trailing spaces
|
|
|
|
color ,green "[[:space:]]+$"
|