Friday, October 20, 2017

Re: markdown 4 backticks fenced code blocks

On Fr, 20 Okt 2017, David Demelier wrote:

> 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,

Please contact the maintainer of the plugin and discuss this issue with
him.

Christian
--
Die Leute sind gar nicht so dumm, wie wir sie durchs Fernsehen noch
machen werden.
-- Hans Joachim Kulenkampff

--
--
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:

Post a Comment