2017-02-18 23:17:07 +03:00
|
|
|
filetype: markdown
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "\\.(md|mkd|mkdn|markdown)$"
|
|
|
|
|
|
|
|
rules:
|
2017-03-21 22:07:39 +03:00
|
|
|
# Tables (Github extension)
|
|
|
|
- type: ".*[ :]\\|[ :].*"
|
|
|
|
|
|
|
|
# quotes
|
|
|
|
- statement: "^>.*"
|
|
|
|
|
|
|
|
# Emphasis
|
2017-02-18 23:17:07 +03:00
|
|
|
- type: "(^|[[:space:]])(_[^ ][^_]*_|\\*[^ ][^*]*\\*)"
|
2017-03-21 22:07:39 +03:00
|
|
|
|
|
|
|
# Strong emphasis
|
|
|
|
- type: "(^|[[:space:]])(__[^ ][^_]*__|\\*\\*[^ ][^*]*\\*\\*)"
|
|
|
|
|
|
|
|
# strike-through
|
2017-02-18 23:17:07 +03:00
|
|
|
- type: "(^|[[:space:]])~~[^ ][^~]*~~"
|
2017-03-21 22:07:39 +03:00
|
|
|
|
|
|
|
# horizontal rules
|
|
|
|
- special: "^(---+|===+|___+|\\*\\*\\*+)\\s*$"
|
|
|
|
|
|
|
|
# headlines
|
|
|
|
- special: "^#{1,6}.*"
|
|
|
|
|
|
|
|
# lists
|
|
|
|
- identifier: "^[[:space:]]*[\\*+-] |^[[:space:]]*[0-9]+\\. "
|
|
|
|
|
|
|
|
# misc
|
|
|
|
- preproc: "(\\(([CcRr]|[Tt][Mm])\\)|\\.{3}|(^|[[:space:]])\\-\\-($|[[:space:]]))"
|
|
|
|
|
|
|
|
# links
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant: "\\[[^]]+\\]"
|
|
|
|
- constant: "\\[([^][]|\\[[^]]*\\])*\\]\\([^)]+\\)"
|
2017-03-21 22:07:39 +03:00
|
|
|
|
|
|
|
# images
|
2017-02-18 23:17:07 +03:00
|
|
|
- underlined: "!\\[[^][]*\\](\\([^)]+\\)|\\[[^]]+\\])"
|
2017-03-21 22:07:39 +03:00
|
|
|
|
|
|
|
# urls
|
|
|
|
- underlined: "https?://[^ )>]+"
|
|
|
|
|
|
|
|
- special: "^```$"
|
|
|
|
|
|
|
|
- special:
|
|
|
|
start: "`"
|
|
|
|
end: "`"
|
|
|
|
rules: []
|