Wiki source code of Rendering
Last modified by superadmin on 2026/12/04 14:19
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | XWiki stores the content of a page as text in a syntax and never stores the HTML a reader gets. Rendering is the step that works that result out again on every request: a parser turns the stored text into a tree of blocks, transformations rewrite that tree, and a renderer writes it out in the format that was asked for. | ||
| 2 | |||
| 3 | Most of what a developer adds to the pipeline is a macro. [[Rendering Macros>>doc:documentation.xs.dev.rendering.macros.WebHome]] covers what a macro is in the code, the transformation that executes it, the ways of writing one in Java or in a wiki page, and the macros XWiki already bundles. | ||
| 4 | |||
| 5 | The same conversion also happens in the browser. [[Front-End Rendering>>doc:documentation.xs.dev.rendering.front-end.WebHome]] documents the npm packages that convert syntaxes such as Markdown or HTML to and from a universal AST, and [[Front-End Syntaxes>>doc:documentation.xs.dev.rendering.syntax.WebHome]] the components through which a syntax declares to the editor which features it allows. |