mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-09 10:23:48 -05:00
Prior to this commit, _any_ line that started with at least 4 spaces or a tab would be considered a code block. For example, the third level of a 2-space-indented list would be highlighted as code, not as list items. Note: this conforms to the original Markdown spec: > To produce a code block in Markdown, simply indent every line of the > block by at least 4 spaces or 1 tab. > A code block continues until it reaches a line that is not indented > (or the end of the article). While this doesn't explicitly state that a blank line _before_ the code block is required, in practical testing, it is. As such, I've included the requirement of a blank line preceeding the indent to match the region start. Any line not indented by at least 4 spaces will end the region. Closes https://github.com/tpope/vim-markdown/issues/81 Closes https://github.com/tpope/vim-markdown/issues/164 Closes https://github.com/tpope/vim-markdown/issues/94 (possibly) Closes https://github.com/tpope/vim-markdown/pull/140