feat(lessons): Add lessons modules

This commit is contained in:
Khaled Garbaya
2017-09-27 11:50:00 +02:00
committed by Benedikt Rötsch
parent 1875c99a4c
commit 62ecdfe60c
7 changed files with 43 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ const marked = require('marked')
// Parse markdown text
exports.markdown = (content) => {
content = content || ''
return marked(removeIvalidDataURL(content), {sanitize: true})
}