Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jekyll Code Blocks #72

Open
thecliguy opened this issue Oct 6, 2018 · 0 comments
Open

Jekyll Code Blocks #72

thecliguy opened this issue Oct 6, 2018 · 0 comments
Labels

Comments

@thecliguy
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants