PublicLab.Editor icon indicating copy to clipboard operation
PublicLab.Editor copied to clipboard

Center aligning paragraph with the main heading

Open shreyaa-s-zz opened this issue 5 years ago • 4 comments

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:

simplescreenrecorder-2020-06-05_17 41 23

(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 : simplescreenrecorder-2020-07-11_02 20 21

shreyaa-s-zz avatar Jun 05 '20 12:06 shreyaa-s-zz

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 : simplescreenrecorder-2020-07-11_02 20 21

cypherean avatar Jul 10 '20 21:07 cypherean

@cesswairimu can I work on this issue?

Goodiec avatar Oct 12 '21 01:10 Goodiec

Hi @Goodiec, sorry for the late reply. Yes please, we would love your help. thanks

cesswairimu avatar Oct 21 '21 17:10 cesswairimu

No problem @cesswairimu

Goodiec avatar Oct 21 '21 17:10 Goodiec