PublicLab.Editor
PublicLab.Editor copied to clipboard
Center aligning paragraph with the main heading
When Center aligning a few lines of code along with a heading only the heading is center aligned. But this happens only for the main heading. The center aligning works fine for any other heading in between the content. GIF for reference:

(test conducted on main branch)
I think this could be because of <center> tag being a block-level/inline element. The content is centered horizontally within its containing element. The possible problem could be that the first heading is not wrapped in the same element as the content body.
Update
When testing this in markdown mode and found out that center aligning in markdown and converting to rich text works fine but the heading is not rendered as heading, GIF uploaded :

Was testing this in md mode and found out that center aligning in markdown and converting to rich text works fine but the heading is not rendered as heading, GIF uploaded :

@cesswairimu can I work on this issue?
Hi @Goodiec, sorry for the late reply. Yes please, we would love your help. thanks
No problem @cesswairimu