Permalink
Browse files

Fix: Setext Style headings must contain a line with only equal signs …

…or dashes, ref #11
  • Loading branch information...
1 parent dc84a09 commit 12e6683eea09fd2e5cca898f9d8f34707fd8aab4 @mzlogin committed Nov 6, 2016
Showing with 7 additions and 1 deletion.
  1. +1 −1 ftplugin/markdown.vim
  2. +6 −0 test/GFM.md
@@ -14,7 +14,7 @@ endif
let g:GFMHeadingIds = {}
function! s:HeadingLineRegex()
- return '\v(^.+$\n\=+|^.+$\n\-+|^#{1,6})'
+ return '\v(^.+$\n^\=+$|^.+$\n^\-+$|^#{1,6})'
endfunction
function! s:GetSections(beginRegex, endRegex)
View
@@ -15,9 +15,15 @@
heading1
===
+not heading1
+===ha
+
heading2
--
+not heading2
+---ha
+
===
---

0 comments on commit 12e6683

Please sign in to comment.