Friday, October 20, 2017

markdown 4 backticks fenced code blocks

Hello,

In vim, all my markdown files used 4 backticks (````) to delimitate fenced code blocks. It does not renders correctly in vim because it looks like vim's markdown syntax only supports 3 backticks (which is valid in most markdown extensions too).

I wonder if it's possible to update the markdown syntax to support both 3 and 4 backticks as fenced code blocks.

I think the line 88 of syntax/markdown.vim

syn·region·markdownCode·matchgroup=markdownCodeDelimiter·start="^\s*```.*$"·end="^\s*```\ze\s*$"·keepend

could be updated like this:

syn·region·markdownCode·matchgroup=markdownCodeDelimiter·start="^\s*````?.*$"·end="^\s*```\ze\s*$"·keepend

But I'm not an expert,

What do you think?

--
David

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: