1
1
nano/syntax/markdown.nanorc
Benno Schulenberg c859fd40b6 syntax: markdown: do not colorize text between two bold words as italic
Also, do not colorize the text between two stricken-through words,
do not colorize text immediately after an indented piece of code,
but do give color to a double trailing space.

Signed-off-by: Ryan Westlund <rlwestlund@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2020-04-20 13:42:00 +02:00

38 строки
852 B
Plaintext

## Syntax highlighting for Markdown files.
syntax markdown "\.md$"
comment "<!--|-->"
# Quoted:
color magenta "^[ ]*>.*"
# List-item markers:
color brightmagenta "^( | )* ? ? ?(\*|\+|-|[1-9]+\.)( +| )"
# Emphasis and strong:
color green "\*[^* ][^*]*\*|_[^_ ][^_]*_"
color brightgreen "\*\*[^*]+\*\*|__[^_]+__"
# Strikethrough:
color red "~~[^~]+~~"
# Line breaks:
color ,blue " $"
# URLs and links:
color brightblue "\[[^]]+\]\([^)]+\)"
color brightmagenta "!?\[[^]]+\]"
# Code snippet, indented code, and fenced code:
color brightcyan "`[^`]+`"
color brightcyan "^( | )+ *([^*+0-9> -]|[*+-]\S|[0-9][^.]).*"
color brightcyan start="```" end="```$"
# Headings and the underlining of headings:
color brightyellow "^#.*"
color brightyellow "^(=+|-+)$"
# HTML tags and comments:
color cyan "<[^>]+>"
color cyan start="<!--" end="-->"