Fix defaults for Blackfriday

This commit is contained in:
Naoya Inada
2015-02-01 02:24:00 +09:00
committed by bep
parent f264076f66
commit d1364ffb68
3 changed files with 13 additions and 6 deletions

View File

@@ -211,7 +211,7 @@ func (p *Page) getRenderingConfig() *helpers.Blackfriday {
combinedParam[key] = value
}
}
p.renderingConfig = new(helpers.Blackfriday)
p.renderingConfig = helpers.NewBlackfriday()
if err := mapstructure.Decode(combinedParam, p.renderingConfig); err != nil {
jww.FATAL.Printf("Failed to get rendering config for %s:\n%s", p.BaseFileName(), err.Error())
}