Skip to content

Instantly share code, notes, and snippets.

@allmarkedup
Created March 5, 2016 12:34
Show Gist options
  • Save allmarkedup/b5ec6198bdcd1445e80c to your computer and use it in GitHub Desktop.
Save allmarkedup/b5ec6198bdcd1445e80c to your computer and use it in GitHub Desktop.
Add markdown filter to the Fractal nunjucks engine
var md = require('marked');
fractal.engine('nunjucks', '@frctl/nunjucks-engine', {
filters: {
markdown: function(str){
return md(str);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment