Category / Section
How to align the content in Markdown Editor
Published:
By default, contents are left-aligned. Kindly use the workaround provided below to change the alignment of the content in markdown as there isn’t an alignment option in the markdown editor.
To change the content alignment:
- Use the following structure to align the content
We suggest inserting a blank line before and after the block as indicated below in order to achieve the best results.
-
For Text:
-
For Image:
-
For Table:
-
For Code-Block:
-
For iframe:
- Utilize the float property to position the iframe on both the left and right sides.
- Utilize the margin to centrally align the iframe.
- You can modify the content alignment based on below class names
Left | align-block-left. for iframe, float: left |
Center | align-block-center. for iframe, margin: 0 auto |
Right | align-block-right. for iframe, float: right |
Result:
-
For Text:
-
For Image
-
For Table
-
For Code-Block
-
For iframe
- The iframe on the left and right sides.
- Center iframe.