Fixed image align in markdown content
This commit is contained in:
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…
Reference in New Issue
Block a user