X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/34de7d90c2f3f19f06e038ad4449d2825fbab941..de94e028f20cf95a669a65b0d38547918e15fbe0:/syntax/mkd.vim diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 82778c2..19d59d5 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -69,7 +69,7 @@ syn match mkdLineBreak / \+$/ syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineBreak,mkdLineContinue,@Spell syn region mkdCode start=/\(\([^\\]\|^\)\\\)\@]*>" end="" syn region mkdCode start="]*>" end="" syn region mkdFootnote start="\[^" end="\]" @@ -94,7 +94,12 @@ syn region htmlH6 start="^\s*######" end="\($\|#\+\)" contain syn match htmlH1 /^.\+\n=\+$/ contains=@Spell syn match htmlH2 /^.\+\n-\+$/ contains=@Spell -syn cluster mkdNonListItem contains=htmlItalic,htmlBold,htmlBoldItalic,mkdFootnotes,mkdID,mkdURL,mkdLink,mkdLinkDef,mkdLineBreak,mkdBlockquote,mkdCode,mkdIndentCode,mkdListItem,mkdRule,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6 +if get(g:, 'vim_markdown_math', 0) + syn region mkdMath matchgroup=mkdDelimiter start="\\\@ + let b:current_syntax = "mkd" delcommand HtmlHiLink