UniAst
Last modified by Manuel Leduc on 2026/03/25 10:03
Description
UniAst provides a universal AST format to seamlessly convert between XWiki's supported formats (e.g., Markdown, HTML, etc.) and custom editor's internal structures (e.g., TipTap, BlockNote, CKEditor).
Supported syntaxes
- Markdown
- Github Flavored Markdown
- XWiki's custom syntax for links
- XWiki's custom syntax for images
References
The UniAST API is documented at UniAST - API.
To parse and serialize Markdown content, see UniAST - Markdown.
Cristal 1.2.0+
- @xwiki/cristal-uniast-markdown-filesystem: provides a ComponentInit class to register the dedicated link and images serializer for the file system backend.
- @xwiki/cristal-uniast-markdown-github: provides a ComponentInit class to register the dedicated link and images serializer for the file GitHub backend.
- @xwiki/cristal-uniast-markdown-nextcloud: provides a ComponentInit class to register the dedicated link and images serializer for the Nextcloud backend.
To serialize HTML content, see UniAST - HTML.
Examples
See the how-to.

This project is being financed by the French State as part of the France 2030 program
Ce projet est financé par l’État Français dans le cadre de France 2030