2
0
Fork 0
nano-syntax-archived/markdown.nanorc

20 lines
665 B
Plaintext

syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
# Emphasis
color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
# Strong emphasis
color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
color brightmagenta "^=====*$|^-----*$|^#{1,6}.*"
color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
color black "^[[:space:]]+"
color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
color brightyellow "\!?\[[^]]*\]([[:space:]]*\[[^]]*\]|\(.*\))?"
color brightyellow "^\[.*\]:[[:space:]]*[^"]*"
color yellow "`[^`]*`|^ {4}[^-+*].*"
color cyan "^>.*"
color ,green "[[:space:]]+$"
color ,red " + +| + +"
# +EXTRALINT