liquid-rust icon indicating copy to clipboard operation
liquid-rust copied to clipboard

Liquid fails on open {{{

Open chipsenkbeil opened this issue 4 years ago • 0 comments

Coming from https://github.com/cobalt-org/cobalt.rs/pull/866, I think I might have hit a case where there is a need for more lax support. That or cobalt's template parsing needs to be specially-handled for vimwiki.

In vimwiki, a code block looks like this:

{{{python
def my_func():
    print('hello world!')
}}}

For a cobalt file of this:

---
layout: default.liquid
---

{{{python
def my_func():
    print('hello world!')
}}} 

This causes liquid to fail:

Info: caused by Failed to render content for index.html
Info: caused by liquid:  --> 8:3
  |
8 | {{{python␊
  |   ^---
  |
  = expected Value

On the liquid side, a solution would be to ignore errors like this and continue parsing.

chipsenkbeil avatar Jun 07 '21 14:06 chipsenkbeil