Markdown source files that contain curly braces, e.g. {{title}}, are considered template interpolations against the YAML front-matter of that post. I have to escape the braces like {{title}} in order to output them without causing a hexo error.
In hexo 2.x this behavior also affects code inside markdown code blocks, which makes writing code samples for curly brace templates very annoying. Now in 3.0 this has been fixed, which is great.
However I would still like to have a config option that allows me to completely disable this feature. I don't really need interpolation in my markdown; I just want to use curly braces as I would in normal HTML.
+1
+1 for using {% raw %} and {% endraw %}
Btw, how to display {% raw %} and {% endraw %} in a post?
Most helpful comment
Use
rawblockhttps://hexo.io/docs/troubleshooting.html#Escape_Contents