In the Advanced WYSIWYG editor, use the Align center option in the toolbar to center-align text with a single click. In the Markdown editor, all text defaults to left alignment and there is no built-in centering syntax. The workaround is to use inline HTML, which Document360 renders correctly.
These steps apply to the Markdown editor and to Markdown view in the unified Editor. The text is centered in both, but the unified Editor stores the alignment differently. See How the unified Editor stores the alignment.
NOTE
The unified Editor is rolled out in phases and is currently available in projects created on or after November 23, 2026. Projects created earlier continue to use the Advanced WYSIWYG editor and the Markdown editor. We're working to make it available to all projects soon.
When to use custom alignment
Center and right alignment are best used sparingly for specific presentational purposes, not for body text. Common use cases include:
- Pull quotes or highlighted statements: a short centered sentence draws the reader's eye to a key point.
- Image captions or standalone labels: centering a caption beneath an image or diagram improves visual pairing.
- Section dividers or decorative headings: a centered H2 or H3 can visually separate major sections in longer articles.
Avoid applying center alignment to paragraphs of body text. It reduces readability and is not recommended for prose.
This technique applies to Markdown content. In the unified Editor's Block view, open Alignment, Spacing, Indent in the toolbar and select Align center, or press Ctrl + Shift + E. In the Advanced WYSIWYG editor, use the Align center option in the toolbar. The inline HTML tags described here have no effect in those views.
Quick reference
Use these snippets directly. Replace Text_content with your text.
| Element | Center-aligned | Right-aligned |
|---|---|---|
| Paragraph | <p style="text-align:center;">Text_content</p> |
<p style="text-align:right;">Text_content</p> |
| H2 heading | <h2 style="text-align:center;">Text_content</h2> |
<h2 style="text-align:right;">Text_content</h2> |
| H3 heading | <h3 style="text-align:center;">Text_content</h3> |
<h3 style="text-align:right;">Text_content</h3> |
| H4 heading | <h4 style="text-align:center;">Text_content</h4> |
<h4 style="text-align:right;">Text_content</h4> |
How to align text in Markdown
The same pattern applies whether you are aligning a paragraph or a heading. Only the HTML tag changes.
- Open the desired article in the Knowledge base portal. In the unified Editor, select Markdown view (</>) in the article header.
- Paste the appropriate snippet from the table above at the location where you want the aligned text to appear.
- Replace
Text_contentwith your desired text.
Example: center-aligned paragraph
<p style="text-align:center;">Sample text with center alignment</p>
Output:
Sample text with center alignment
Example: center-aligned H3 heading
<h3 style="text-align:center;">H3 that is center aligned</h3>
Output:
H3 that is center aligned
You can apply standard Markdown formatting, such as bold, italic, and strikethrough, to the entire HTML tag using the usual syntax.
Example:
***<p style="text-align:center;">Text with basic formatting applied</p>***
Output:
Text with basic formatting applied
How the unified Editor stores the alignment
In the unified Editor, the alignment is stored using the Editor's own directive rather than the HTML tag you pasted. The text stays centered, but the next time you open Markdown view, your snippet has been replaced.
For example, this snippet:
<p style="text-align:center;">CENTER PARAGRAPH</p>
is stored as:
[d360]: # 'aligned value="center"'
CENTER PARAGRAPH
[d360]: # "/aligned"
This is expected. The alignment still applies on the knowledge base site, and you can edit the text between the two directives as normal. To change or remove the alignment afterwards, edit the directive rather than looking for the original HTML tag. You can also type the directive yourself; use value="right" or value="justify" for other alignments.
In the Markdown editor, the HTML tag is stored exactly as you pasted it.