Modify horizontal rule (thematic-breaks) syntax for markdown.

This change makes the horizontal rule syntax more closely match the
commonmark spec https://spec.commonmark.org/0.29/#thematic-breaks. The
number of characters required was changed to 3 and '___' and '***' where
added as valid sequences. The space rules were not added becuase it adds
extra complexity for little benefit. Issue #664.
This commit is contained in:
Rane Brown 2019-05-23 21:59:13 -06:00
parent 42a1f08ffa
commit d045ad4db0
2 changed files with 2 additions and 1 deletions

View File

@ -3517,6 +3517,7 @@ Removed:~
point. point.
Fixed:~ Fixed:~
* Modify horizontal rule (thematic-breaks) syntax for markdown.
* Disable spell check in code and math inline/blocks. * Disable spell check in code and math inline/blocks.
* Properly handle markdown image links `![]()` * Properly handle markdown image links `![]()`
* Issue #415: Expand iabbrev entries on <CR>. * Issue #415: Expand iabbrev entries on <CR>.

View File

@ -67,7 +67,7 @@ let s:markdown_syntax.symH = 0
" <hr>, horizontal rule " <hr>, horizontal rule
let s:markdown_syntax.rxHR = '^-----*$' let s:markdown_syntax.rxHR = '\(^---*$\|^___*$\|^\*\*\**$\)'
" Tables. Each line starts and ends with '|'; each cell is separated by '|' " Tables. Each line starts and ends with '|'; each cell is separated by '|'
let s:markdown_syntax.rxTableSep = '|' let s:markdown_syntax.rxTableSep = '|'