Writing XWiki pages in Markdown: when teams need it
Teams that already write Markdown in wikis, repositories and ticket systems often ask whether they can keep writing that way in XWiki without learning XWiki syntax first. The answer is yes, through the xwiki-contrib Markdown Syntaxes project, which supplies parsers and renderers for Markdown syntaxes in XWiki 12.10 and later. The project is licensed under the LGPL 2.1. Enabling it is a platform decision, not a per-page preference, so the decision belongs with the wiki owners before contributors start writing. The question to answer first is whether the people who will edit the content already think in Markdown, and whether the content will mostly be read in the wiki or reused elsewhere.
Markdown covers headings, lists, links, emphasis and code blocks, which is enough for many procedures, runbooks and meeting notes. It does not replace the native XWiki syntax, which remains the format the platform uses for macros, dynamic content, page structure, applications and the features that depend on them, such as forms, tables of content driven by macros and access-controlled includes. Before rollout, confirm with your own test pages which constructs your contributors actually need and which ones they will reach for, since anything that depends on XWiki macros still needs XWiki syntax. Confirm the exact syntax variant and feature coverage in the project's documentation for the XWiki version you run, because the supported set changes between releases.
Plan for mixed content from the start. A wiki where some pages are Markdown and others are XWiki syntax is workable if the team agrees which pages use which syntax, how editors are chosen, and who maintains the pages that must stay in XWiki syntax. Imported content from other tools adds a second risk, because conversion can lose tables, macros or embedded media, so the team should test a sample of pages from each source before any bulk conversion. The project's syntax-markdown repository is the natural next read for the supported syntaxes and installation steps.
Which syntax to choose per team, space or page
When the wiki is new and the people writing most of the content already work in Markdown, enabling Markdown as the default syntax for the main content spaces keeps authoring simple from the first page. Writers get familiar headings, lists, code blocks and tables, and the wiki does not start with a large body of XWiki syntax that nobody wants to maintain.
- Editor fit: Markdown writers can draft in their usual tools and paste content with little reformatting, which reduces friction during rollout.
- Macros and dynamic content: Live queries, includes, and XWiki macros are not expressed directly in Markdown, so plan a small set of XWiki syntax pages for those cases.
- Application pages: Pages created by XWiki applications such as administration or forms may still rely on XWiki syntax, so check which pages stay in XWiki syntax.
- Templates: Build page templates in the chosen syntax so new authors start from a consistent structure.
- Governance: Name the owner of the default syntax for each space and record who may change it.
Before committing, test a sample space with the macros your teams actually use and confirm the Markdown parser version against your XWiki release.
When the wiki already holds years of pages in XWiki syntax, changing the default for the whole estate is rarely worth the disruption. Existing pages, macros, scripts and templates depend on XWiki syntax, and rewriting them creates review and regression work that the content owners must approve. The usual approach is to keep XWiki syntax for existing spaces and allow Markdown only where a new space justifies it.
- Editor fit: Authors used to the XWiki editor keep their current habits, and training stays focused on new spaces.
- Macros and dynamic content: Existing macros, scripts and live data pages continue to work without conversion, which protects the content that drives dashboards and reports.
- Conversion scope: Convert only pages that gain little from XWiki features, and treat each converted page as a content change that needs review.
- Mixed rendering: Confirm how existing pages render after the Markdown syntax extension is installed, since the extension adds syntax options without changing stored content.
- Governance: Decide whether the content owners or the wiki administrators approve a new space's syntax.
Ask the wiki administrators for a count of pages by syntax and by macro usage before deciding, because that inventory determines how much conversion is realistic.
Most organizations end up with both groups: engineering teams who prefer Markdown and content owners who prefer the XWiki editor and its macros. Allowing both syntaxes is workable when each space has a clear default and the people working in it know what they are using. Problems appear when a single page mixes syntaxes without a plan, or when readers cannot tell how a page was written.
- Per-space defaults: Set the syntax at the space level where possible, so authors do not choose a syntax on every page.
- Per-page exceptions: Allow a page to differ from its space only when a documented reason exists, such as a macro that Markdown cannot express.
- Cross-space links and includes: Test that includes and links between spaces with different syntaxes render as expected.
- Search and reuse: Confirm that search, page templates and exports behave the same across both syntaxes for the content your teams rely on.
- Governance: Publish a short syntax policy that names the default for each space and the approver for exceptions.
Before rolling out mixed syntax, run a pilot with one Markdown space and one XWiki syntax space and check links, includes and search across both.
Configuration options and when each fits
This table compares the four ways a team can use Markdown alongside XWiki syntax: instance-wide enablement, per-page choice, per-space use and keeping XWiki syntax as the default. Read each row against your editors, your existing content and the macros your pages depend on. The main takeaway is that the narrower the scope, the easier it is to contain surprises, but the exact steps must be confirmed against the project documentation for your XWiki version.
| Option | What it affects | When it fits | Watch for |
|---|---|---|---|
| Keep XWiki syntax as the default | New and existing pages stay in XWiki syntax. Editors see no change. | Teams with established XWiki syntax habits, or macro-heavy pages that Markdown cannot express cleanly. | Contributors who arrive from Markdown tools may paste content that renders poorly. |
| Enable the Markdown parser and renderer on the instance | Makes Markdown available to every space and page the editor can reach. | Organizations that want one consistent option for all teams and have checked the syntax on their key pages. | Any page that later switches syntax needs review, and administrators must track who can change syntax. |
| Set the syntax per page | Only the page you choose is stored and rendered as Markdown. Other pages are unchanged. | Pilots, single imported documents or pages where Markdown is a clear fit. | Each page carries its own syntax setting, so audits and bulk edits become harder to scope. |
| Use Markdown for specific spaces | All pages in the chosen spaces default to Markdown, while the rest of the wiki stays in XWiki syntax. | Teams such as engineering documentation that write mostly in Markdown, with clear space ownership. | Cross-space links, included pages and macros may behave differently between spaces, so test them before rollout. |
| Mixing syntaxes across the wiki | Pages in different syntaxes coexist and link to each other. | Gradual adoption when content from several tools is moving into one wiki. | Macros, includes and template pages written in one syntax may not render as expected in the other. Test each combination. |
| Converting imported Markdown content | Moves content into XWiki syntax or keeps it as Markdown after import. | One-time migrations where you want uniform syntax long term, or where Markdown must stay for editors. | Conversion can lose formatting or macros. Confirm the result on a sample set before a full import. |
| Confirming configuration steps | The exact settings, option names and supported syntax versions depend on your XWiki release. | Before any change on a production instance, and before each XWiki upgrade. | Check the xwiki-contrib Markdown project documentation for your XWiki version and test in a staging instance first. |
How mixing Markdown and XWiki syntax affects content
Mixing syntaxes changes how content behaves at the boundaries, so decide early whether a page family will be Markdown only, XWiki syntax only, or mixed. When a Markdown page links to an XWiki syntax page, or the reverse, the link target still resolves in the wiki, but the link markup, anchors and special characters may be interpreted differently by each parser. Inclusion is the riskier case. If one page includes another, or both use the same macro, the included content is rendered by the parser of the page that holds the include, and the result can differ in headings, tables, code blocks and nested lists. Macros are the sharpest edge: a macro written in XWiki syntax has no guaranteed Markdown equivalent, so teams should expect some constructs to appear as raw text or be dropped when they cross the boundary.
Before mixing, build a test set of representative pages in your own instance. Include a page with cross-syntax links, a page that includes a Markdown page from an XWiki syntax page and the reverse, pages that use each macro your team relies on, and a few tables and code blocks. Render each page, compare the output with the source, and check the rendered HTML in the browser that your users actually use. Install the xwiki-contrib Markdown syntax extension in a non-production instance first, and confirm which XWiki version it supports for your release line. Look at the extension's own documentation and issue tracker for known gaps before you rely on a construct.
Confirm, rather than assume, which constructs survive a round trip on your version. A round trip means saving content in one syntax, converting or editing it in the other, and checking that the meaning and layout are unchanged. Record the results as a short compatibility list that content owners can use, and keep it with your administration runbook so it is reviewed after each XWiki or extension upgrade. Where a construct fails, decide whether to rewrite the content in one syntax, restrict the page family, or accept the difference and tell authors. Ask your implementation partner or the extension maintainers to confirm any construct your processes depend on before the wider rollout.
Enabling the Markdown syntax step by step
This sequence takes a self-hosted XWiki from a version check to a Markdown-enabled space that editors can use. Each step ends with a check, so you know whether to continue, fix a problem or roll back before the change reaches real content.
Confirm the XWiki version is 12.10 or later
Check the running XWiki version in the administration area or the footer of any page, and confirm it is 12.10 or later, the minimum the xwiki-contrib Markdown Syntaxes project supports. If the instance is older, plan the upgrade first, because the Markdown parser will not be a supported option until the version requirement is met. Record the exact version in your change ticket so reviewers can match it to the extension release you install. The step is done when the version number is written down and meets the minimum.
Choose and prepare a test instance
Pick a non-production XWiki instance that matches production in version, database and Tomcat setup, or create one from the same official image tag you run in production. Restore a recent copy of a few representative spaces into it so you test with realistic page structures, macros and attachments. Confirm that you have an administrator account and a current backup of the test instance. The step is done when the test instance loads, you can log in as an administrator, and the backup has been verified.
Install the Markdown syntax parser and renderer
Install the parser and renderer from the xwiki-contrib Markdown Syntaxes project on the test instance, using the extension method your team has approved, such as the XWiki Extension Manager or a reviewed package. Use an extension version that matches your XWiki version, and read the project documentation for any required dependencies. Restart or reload the instance if the installation asks for it. The step is done when the extension appears in the installed extensions list with the expected version and the instance starts without errors in the logs.
Set the default or per-page syntax
Decide whether Markdown should be the default syntax for the wiki or only for selected pages, then set it in the configuration for the test instance. A per-page choice keeps existing XWiki syntax content unchanged and suits a mixed wiki, while a default affects every new page. Note which pages or spaces will use each syntax so editors know what to expect. The step is done when a new page opens in the syntax you chose and an existing XWiki syntax page still shows its original syntax.
Create a test page and check rendering
Create a test page in a scratch space and write Markdown covering headings, lists, tables, code blocks, emphasis and block quotes. Save it, view the rendered output, and compare it with what you expect from the Markdown source. Check the same page in edit mode to confirm the source is stored as you typed it. The step is done when every element renders as expected and nothing appears as raw markup in the view.
Check links, images and attachments
On the same test page, add an internal wiki link, an external link, an image attached to the page and a file attachment, then save and view it. Open each link to confirm it resolves to the right page or file, and check that the image displays at a usable size. Also check that an attachment downloads and that its permissions match the space. If a link or image breaks, record the syntax that failed and test whether the problem appears in XWiki syntax too. The step is done when all links resolve, the image displays and the attachment downloads correctly.
Test mixed syntax and roll out to one space
Before wider use, open an existing XWiki syntax page that includes macros, and confirm it still renders after the Markdown parser is active. Then enable Markdown in one pilot space chosen with its content owners, and ask a small group of editors to create and edit pages there. Keep a rollback plan that resets the default setting, disables the extension or restores the backup taken before the change. The step is done when the existing pages render correctly, the pilot editors can work without problems and the rollback steps have been written down and tested on the test instance.
How a Markdown page is parsed and rendered
The flow starts in the editor, where an author saves Markdown content. The xwiki-contrib Markdown parser turns that text into the XWiki model, and the rendering pipeline then handles XWiki syntax macros embedded in the same content. The stored content keeps its original Markdown syntax in the database, so the syntax of each page remains visible for review, export and migration checks. Confirm which Markdown dialect your installed syntax extension supports before you rely on it for imported content.
Markdown input is parsed, macros are handled by XWiki, and stored content keeps its syntax.
Converting Markdown content imported from other tools
The first decision for content exported from another wiki, a Git repository or a document tool is whether it lands as Markdown-syntax pages or gets converted into XWiki syntax before import. Keeping the Markdown syntax preserves the source text closely and makes a later re-export simpler, but every page then depends on the Markdown syntax parser and renderer being installed and maintained in the instance. Converting to XWiki syntax gives the content the full set of XWiki macros and editing behavior, at the cost of a conversion step whose output must be checked. Decide this per content set, not for the whole wiki, and write the decision down before the first batch moves. Confirm with your administrators which xwiki-contrib Markdown syntax release matches your XWiki version, since the project's own documentation sets the compatibility floor.
Images, attachments, internal links and metadata are where imported Markdown most often breaks. Relative image paths and links to other files in a repository usually point to locations that do not exist in XWiki, so the import needs a mapping table from source paths to new page references and attachment names. Attachments must be uploaded to the target page before the links to them are rewritten, and the import should record the original author, creation date and last modified date if your audit trail depends on them. Front matter fields from static site generators or document tools often have no XWiki equivalent and need an explicit rule: map them to page properties, drop them, or keep them in the body. Ask the person who owns each source system which of these fields carry meaning.
Before any bulk import, run a sample-based review. Choose pages that cover each content type in the source set, including pages with tables, code blocks, nested lists, embedded images, cross-page links and unusual front matter, then import them into a separate test instance or a test space. Have the content owners check rendered output against the source, not the raw text, and record each class of defect with its fix. Re-run the sample after every change to the mapping rules. Only when the sample passes should the full set move, and the same checks should run again on the imported spaces. A sample review tells you what the conversion cannot handle, which is the input your project plan and quote need, so confirm the sample size and acceptance criteria with the partner before work starts.
Security and operational considerations for Markdown content
Markdown content changes how pages are written, rendered and imported, so the security and operations checks sit alongside the syntax choice. The cards below are checks to run in your own instance, not guarantees about how the extension behaves in your version. Run them in a staging wiki before you enable the syntax for general editors.
Raw HTML and script handling
Markdown allows raw HTML in many dialects, and the renderer decides which tags, attributes and script-capable content reach the browser. Create test pages with inline script tags, event handler attributes, iframes and javascript: links, then view them as a standard user and as an administrator. Confirm that the output matches your policy for who may embed HTML. Record the result for the version you run, because rendering rules can change between extension releases.
Markdown syntax projectInput sanitization and rendering rules
Confirm how the parser handles malformed input, nested macros written as HTML, and XWiki macro syntax that appears inside Markdown text. Ask the wiki team to list which constructs produce XWiki macros and which produce plain HTML, since each path has different permission checks. Compare the rendered output of your standard test set after each upgrade of the extension or XWiki itself.
Access rights on imported content
Markdown files imported from other tools usually arrive without the access rules of their source system. Check whether the import keeps space and page rights, or whether pages inherit the rights of the target space. Review pages that were restricted in the source, such as HR or legal documents, before the import runs against production. Use a test space with a sample of restricted content to verify that non-members cannot read it.
Extension updates in the upgrade plan
The Markdown syntax extension is a separate package with its own release cycle, so it must appear in the same change record as the XWiki version. Confirm which extension version matches your XWiki line before you upgrade, and test the Markdown test set on the staging copy first. Include a rollback step that restores the previous extension and XWiki package together.
Logging of syntax changes
Editors may switch a page's syntax or convert content in bulk, and that change should be traceable. Check that page history records the syntax change along with the content edit, and that administrators can see mass operations in the logs. Decide who reviews these records and how often, and confirm where XWiki logs are stored in your deployment so the retention matches your records policy.
Questions teams ask about Markdown in XWiki
Can Markdown fully replace XWiki syntax across a wiki?
Not automatically, so confirm coverage before you commit. The xwiki-contrib Markdown Syntaxes project provides parsers and renderers that let authors write pages in Markdown, but how much of your existing content maps cleanly depends on what your pages use. Inventory the macros, includes, special blocks and XWiki-specific features in use, then test each pattern on a copy of real pages. Decide which content stays in XWiki syntax, and document a per-space rule so authors know which syntax to pick for new pages.
How long does a Markdown pilot take, and what drives the time?
No duration is published for this work, so ask for a timeline in the written scope. The main drivers are the number of spaces and page types in the pilot, how many XWiki macros and custom syntax those pages depend on, the XWiki version and deployment model, and whether permissions must be checked for the authors who will edit in Markdown. Converted imports add time for sampling and review. A pilot covering one space with a clear macro list is shorter than a pilot covering every department and content type. DeployOpen plans these as fixed-scope engagements, with scope, deliverables and timelines agreed in writing before work starts.
Can our own team enable Markdown in XWiki without a partner?
Often yes, if an administrator can add the extension to your instance and someone on the team already knows XWiki syntax. Installing and enabling the parser is the small part. The skilled work is deciding which spaces use Markdown, testing rendering against the content you actually have, writing authoring guidance, and checking that search, export and existing macros still behave. Confirm your XWiki version against the extension's supported range before you start, and check the project documentation for the installation steps for your deployment. A partner is most useful for the testing and the governance rules.
What does the work need from our team?
Plan for a named owner, a few content experts and an administrator with access to the XWiki instance and its extension configuration. The owner decides which spaces and page types move to Markdown. Content experts supply representative pages, including the difficult ones with macros and complex tables, and review rendered output. The administrator provides a test instance that matches production in XWiki version and database, and handles installation and later upgrades. Ask for a written list of what you must provide before the scope is signed, since delayed access can extend a pilot.
What does a converted Markdown import need before review?
A converted import needs a sample review, a record of what was converted, and checks on links, attachments and macros. Start with a representative set of pages and compare source and rendered output side by side. Log every pattern that did not convert cleanly. Check internal links, image and attachment references, headings used for navigation, tables and code blocks. Keep the original export so reviewers can trace any difference back to its source. Agree in advance who signs off each space and what happens to pages that fail, such as a manual rewrite, leaving them in their original syntax, or archiving them.
Which XWiki versions does the Markdown syntax extension support?
The xwiki-contrib Markdown Syntaxes project supports XWiki 12.10 and later and is licensed under LGPL 2.1, the same license as XWiki itself. Check the project's current compatibility notes against the exact XWiki version you run, including the LTS line you plan to stay on. Retest Markdown rendering after every XWiki upgrade, because a working setup on one version does not guarantee the same behavior on the next. If your instance runs a release older than 12.10, the extension is not a supported path, so plan the XWiki upgrade first. Record the extension version next to your XWiki version in your change log.
Is it safe to mix Markdown and XWiki syntax on the same wiki?
It can work, but it needs written rules. Mixed syntax makes authoring and search harder to predict, so set a per-space policy and list which macros are allowed in Markdown pages. Test pages that include other pages, transclusions and macros first, since rendering differences tend to appear there. Review permissions and page templates so new pages start in the correct syntax. Keep the policy inside the wiki so new authors find it without asking. Revisit the policy after each XWiki upgrade, since renderer behavior can change between versions.
What does a Markdown engagement cost, and what drives the price?
DeployOpen does not publish prices, and a quote follows from the written scope. The cost components are the scope and inventory work, the pilot build and testing on your instance, conversion review, authoring guidance and handover. Costs rise with the number of spaces, the volume of macro-heavy content, the number of reviewers and the depth of testing you require. Costs fall when your team supplies representative pages and a test instance early. Ask for a quote that separates one-time work, such as the pilot, conversion review and training, from recurring work, such as upgrade retesting or retainer support, and that names who performs each task.
How DeployOpen scopes Markdown syntax work
DeployOpen plans Markdown syntax support for XWiki as a written, fixed-scope piece of work, starting from which content authors need Markdown and which pages must stay in XWiki syntax. The work is carried out in your own XWiki instance, with the syntax extension, its configuration and the converted content documented for your team.
How we scope
- Inventory which teams, spaces and imported sources need Markdown and which stay in XWiki syntax.
- Confirm the XWiki version in use against the syntax extension's supported range before any build begins.
- Record the agreed scope, deliverables and timeline in writing before work starts, as engagements are fixed-scope.
How we build
- Install and configure the xwiki-contrib Markdown syntax parsers and renderers in a staging instance first.
- Test mixed-syntax pages, includes, macros and attachments, and record any content that renders differently.
- Design the conversion steps for Markdown content imported from other tools and run them on a sample set before the full set.
How we hand over
- Document which syntax to use for new pages, how mixed pages behave and what authors should avoid.
- Deliver the configuration, conversion scripts and test results so your own team can repeat the steps.
- Walk your administrators and content owners through the handover and the open issues that remain.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Re-test the Markdown setup when you move to a new XWiki line, since syntax extension support depends on the version.
- Confirm the current extension release and its compatibility with your XWiki version with the project before each upgrade.

