Commit 993bf83a authored by NGPixel's avatar NGPixel

Fixed image align in markdown content

parent 39fbb9c3
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -244,6 +244,13 @@ const parseContent = (content) => { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment