我目前正在尝试使用Jekyll将以下字符序列添加到帖子中:
#\^[]|{}~
然而,每当我尝试时,我都会收到错误:
Liquid Exception: Tag '{%' was not properly terminated with regexp: /\%\}/
我已经看过多篇帖子,建议我执行以下操作:
#\^[]|{{ "{}" }}~
这会导致类似的错误:
Liquid Exception: Variable '{{ "{}' was not properly terminated with regexp: /\}\}/
我哪里错了?
答案 0 :(得分:1)
您可以通过执行以下操作暂时禁用Liquid解析:
{% raw %}
#\^[]|{}~
{% endraw %}