-
Notifications
You must be signed in to change notification settings - Fork 79
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
Error with double curly brackets "}}" inside code blocks in cobalt 0.15.0 #320
Comments
We got a new, more conformant liquid parser in cobalt 0.15. For example, see some of the parsing quirks that are supported. I'm not too sure what the right answer for this parsing quirk is. @Goncalerta, I'm assuming we'd have to actually run the ruby version of liquid to know what their behavior is on this. Some workarounds{% raw %}
```erlang
2> pushnotification:send("Message").
"{"aps":{"alert":"Message"} }"
...
{% endraw %} or {% highlight erlang %}
2> pushnotification:send("Message").
"{"aps":{"alert":"Message"} }"
...
{% endhighlight %}
The problem is markdown and liquid processing are different phases and they have no knowledge of each other. You can use the liquid on markdown, html, json, etc. |
I've encountered this, and neither adding a space between the braces does help |
It seems that |
Is there a release of cobalt with this fix soon? It breaks my blog :-/ |
Liquid has been published. I've got a PR out to update cobalt and will then release. |
Starting with 0.15.0 i get an error message
from the code blob:
this works perfectly fine:
i guess the content inside a code block should be completely ignored by cobalt / liquid.
The text was updated successfully, but these errors were encountered: