Fixed image align in markdown content

This commit is contained in:
NGPixel 2017-03-08 19:44:01 -05:00
parent 39fbb9c366
commit 993bf83a44
2 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -244,6 +244,13 @@ const parseContent = (content) => {
}) })
}) })
// Apply align-center to parent
cr('img.align-center').each((i, elm) => {
cr(elm).parent().addClass('align-center')
cr(elm).removeClass('align-center')
})
output = cr.html() output = cr.html()
return output return output