Fixed image align in markdown content

pull/33/head
NGPixel 8 years ago
parent 39fbb9c366
commit 993bf83a44

File diff suppressed because one or more lines are too long

@ -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()
return output

Loading…
Cancel
Save