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

Liquid fails on open {{{ #442

Open
chipsenkbeil opened this issue Jun 7, 2021 · 0 comments
Open

Liquid fails on open {{{ #442

chipsenkbeil opened this issue Jun 7, 2021 · 0 comments

Comments

@chipsenkbeil
Copy link

Coming from cobalt-org/cobalt.rs#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.

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

No branches or pull requests

1 participant