i using docpad static site generator. have run docpad install marked
on command line.
my markdown file about.html.md contains this:
long walks on beach. _plus rock @ docpad!_
when @ site in browser, see actual tags:
<p>i long walks on beach. <em>plus rock @ docpad!</em></p>
obviously want see is:
i long walks on beach. plus rock @ docpad!
i using nunjucks tempting engine through consolidate plugin if makes difference...
according documentation, autoescaping turned on default in nunjucks templating engine security precaution (typical of templating engines). if passing html template , want html rendered without escaping, need tell template "safe":
{{ foo | safe }}
alternatively, globally turn escaping off, not recommended. if want anyway, docs state can "pass autoescape
option false
environment
object":
var env = nunjucks.configure('/path/to/templates', { autoescape: false });
i'm not familiar consolidate plugin docpad, presumably passing { autoescape: false }
option consolidate accomplish same thing.
Comments
Post a Comment