It's better when it's simple

User Tools

Site Tools


xbr Plugin

Compatible with DokuWiki

  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes

plugin Replacement renderer, preserves line breaks present in raw wiki data

Last updated on
Conflicts with
ckgedit, highlightjs

Similar to header3, linebreak

Tagged with typography


This plugin enables the preservation of line breaks from the raw wiki text through to the html output. It is a replacement for the standard DokuWiki XHTML renderer, as such to use it you must set the renderer_xhtml setting to the plugin's name, 'xbr'. For simplicity's sake the plugin uses all of the standard renderers routines with the exception of plain character output, where it uses its own routine to replace new lines with the HTML element, <br />.

Note, the plugin does not preserve multiple consecutive line breaks, but it will preserve single line breaks.

Also see the linebreak plugin.

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

After installation, go via your wiki's admin panel to the Configuration Settings, under “Advanced”, there is an option to change the renderer_xhtml setting to 'xbr'.

Revision History

  • 2008-06-30 — include Danny Lin's suggestions and move code to GitHub
  • 2008-11-11 — installable packages and darcs versions prepared. No changes.
  • 2008-08-13 — released


To Do (feature requests)

  • ~~LINEBREAK~~ / ~~NOLINEBREAK~~ directives support would be extremely helpful.
plugin/xbr.txt · Last modified: 2023-09-25 20:42 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki