mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-18 14:53:40 -05:00
Compare commits
3 Commits
master
...
8eecbdab1e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8eecbdab1e | ||
|
|
7807d5b000 | ||
|
|
2d8b60487a |
@@ -144,6 +144,14 @@ if get(b:, 'markdown_yaml_head', get(g:, 'markdown_yaml_head', main_syntax ==# '
|
||||
syn region markdownYamlHead start="\%^---$" end="^\%(---\|\.\.\.\)\s*$" keepend contains=@markdownYamlTop,@Spell
|
||||
endif
|
||||
|
||||
if get(g:, 'markdown_fenced_tex', 0)
|
||||
syn include syntax/tex.vim
|
||||
syn region markdownHighlighttex matchgroup=markdownCodeDelimiter start="\\\\(\ze[^ \n]" end="[^ \n]\zs\\\\)" keepend contains=@texMathZoneGroup
|
||||
syn region markdownHighlighttex matchgroup=markdownCodeDelimiter start="\\\\\[" end="\\\\\]" keepend contains=@texMathZoneGroup
|
||||
syn region markdownHighlighttex matchgroup=markdownCodeDelimiter start="\$\ze[^ \n]" end="[^ \n]\zs\$" keepend contains=@texMathZoneGroup
|
||||
syn region markdownHighlighttex matchgroup=markdownCodeDelimiter start="\$\$" end="\$\$" keepend contains=@texMathZoneGroup
|
||||
endif
|
||||
|
||||
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
|
||||
syn match markdownError "\w\@<=_\w\@="
|
||||
|
||||
|
||||
Reference in New Issue
Block a user