Markdown Limitations

Last modified by Vincent Massol on 2026/09/28 14:37

Explanation

XWiki doesn't keep the Markdown text of a page as you typed it when the page is edited with the WYSIWYG editor. It reads the Markdown into its own content model, lets you edit that model, and writes it back as Markdown when you save:

Markdown can't express everything the XWiki content model can hold, so this round trip can change the Markdown text, and sometimes loses content. Some Markdown constructs are also not supported at all.

Changes made by the WYSIWYG editor

Some changes only rewrite the Markdown text: the page displays the same.

ContentMarkdown beforeMarkdown after saving
Italics and bold*world* and __strong___world_ and **strong**
Table| a | b | |---|---|| a | b | | --- | --- |

Others lose content:

ContentMarkdown beforeMarkdown after saving
Ordered list starting at another number than 13. three 4. four1. three 1. four
HTML tags other than div around Markdown content, on their own lines (MARKDOWN-93)<section class="red"> *x* </section><section class="red">

Formatting that you apply in the WYSIWYG editor and that Markdown can't express is lost when you save: text color, text alignment, image size and merged table cells. A list or another block inside a table cell breaks the table.

Markdown Syntax 8.10.0+ Boxes, such as an information box added from the "Styles" list, and div tags around Markdown content are kept as groups. To wrap Markdown content in HTML, use a div.

Unsupported Markdown

MarkdownExampleDisplayed as
FootnotesText[^1] [^1]: A footnoteThe text as typed
Backslash escapea\*ba\*b, instead of a*b
Link to a URL without a schemewww.xwiki.orgA broken link: write https://www.xwiki.org

See the unresolved Markdown issues for the other known limitations.

Related

Get Connected