Created
March 5, 2016 12:34
-
-
Save allmarkedup/b5ec6198bdcd1445e80c to your computer and use it in GitHub Desktop.
Add markdown filter to the Fractal nunjucks engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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