vim-pencil icon indicating copy to clipboard operation
vim-pencil copied to clipboard

Jekyll Code Blocks

Open thecliguy opened this issue 7 years ago • 0 comments

I'm currently writing posts for a blog developed using Jekyll.

Posts are written in markdown, however code blocks use Jekyll's Liquid syntax. Code blocks are opened with {% highlight language-name %} and closed with {% endhighlight %}, EG:

{% highlight ruby %}
def foo
  puts 'foo'
end
{% endhighlight %}

I understand that vim-pencil's HardPencil mode has the ability to suspend formatting in code blocks. How can I instruct HardPencil mode to treat text surrounded by {% highlight language-name %} and {% endhighlight %} as a code block?

thecliguy avatar Oct 06 '18 14:10 thecliguy