liquid-rust
liquid-rust copied to clipboard
Liquid fails on open {{{
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.