@@ -85,16 +85,6 @@ syn region mkdLinkTitle matchgroup=mkdDelimiter start=+"+ end=+"+ contained
8585syn region mkdLinkTitle matchgroup =mkdDelimiter start =+ '+ end =+ '+ contained
8686syn region mkdLinkTitle matchgroup =mkdDelimiter start =+ (+ end =+ )+ contained
8787
88- " HTML headings
89- syn region htmlH1 matchgroup =mkdHeading start =" ^\s *#" end =" $" contains =@mkdHeadingContent,@Spell
90- syn region htmlH2 matchgroup =mkdHeading start =" ^\s *##" end =" $" contains =@mkdHeadingContent,@Spell
91- syn region htmlH3 matchgroup =mkdHeading start =" ^\s *###" end =" $" contains =@mkdHeadingContent,@Spell
92- syn region htmlH4 matchgroup =mkdHeading start =" ^\s *####" end =" $" contains =@mkdHeadingContent,@Spell
93- syn region htmlH5 matchgroup =mkdHeading start =" ^\s *#####" end =" $" contains =@mkdHeadingContent,@Spell
94- syn region htmlH6 matchgroup =mkdHeading start =" ^\s *######" end =" $" contains =@mkdHeadingContent,@Spell
95- syn match htmlH1 / ^.\+\n =\+ $/ contains =@mkdHeadingContent,@Spell
96- syn match htmlH2 / ^.\+\n -\+ $/ contains =@mkdHeadingContent,@Spell
97-
9888" define Markdown groups
9989syn match mkdLineBreak / \+ $/
10090syn region mkdBlockquote start =/ ^\s *>/ end =/ $/ contains =mkdLink,mkdInlineURL,mkdLineBreak,@Spell
@@ -117,6 +107,16 @@ syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*\(\*\|\s\)*$/
117107syn match mkdRule / ^\s *-\s\{ 0,1}-\s\{ 0,1}-\( -\|\s\) *$/
118108syn match mkdRule / ^\s *_\s\{ 0,1}_\s\{ 0,1}_\( _\|\s\) *$/
119109
110+ " HTML headings
111+ syn region htmlH1 matchgroup =mkdHeading start =" ^\s *#" end =" $" contains =@mkdHeadingContent,@Spell
112+ syn region htmlH2 matchgroup =mkdHeading start =" ^\s *##" end =" $" contains =@mkdHeadingContent,@Spell
113+ syn region htmlH3 matchgroup =mkdHeading start =" ^\s *###" end =" $" contains =@mkdHeadingContent,@Spell
114+ syn region htmlH4 matchgroup =mkdHeading start =" ^\s *####" end =" $" contains =@mkdHeadingContent,@Spell
115+ syn region htmlH5 matchgroup =mkdHeading start =" ^\s *#####" end =" $" contains =@mkdHeadingContent,@Spell
116+ syn region htmlH6 matchgroup =mkdHeading start =" ^\s *######" end =" $" contains =@mkdHeadingContent,@Spell
117+ syn match htmlH1 / ^.\+\n =\+ $/ contains =@mkdHeadingContent,@Spell
118+ syn match htmlH2 / ^.\+\n -\+ $/ contains =@mkdHeadingContent,@Spell
119+
120120" YAML frontmatter
121121if get (g: , ' vim_markdown_frontmatter' , 0 )
122122 syn include @yamlTop syntax/yaml.vim
0 commit comments