It's better when it's simple

User Tools

Site Tools


clearer Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Clear floats

Last updated on

Similar to clearfloat, wrap

Tagged with typography


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


Basic syntax:

text \\\

Note, no space characters to the right of the three backslashes.


Add three consequtive backslash (“\”) at the end of a line. This will add to your html code after the current paragraph

...</p><div class="clearer" ></div>

The HTML will output all floats currently in buffer. The next line of regular text will start below.


A large image floating to the right should be accompanied by two sections of bulk text on the left. A third section of text should start after the the image. Like so:

bulk text1 o----------o
bulk text2 |          |
           |  image1  |
           |          |
bulk text3

This can be achieved by:

  {{ image1}} 
  bulk text1 \\
  bulk text2 \\\
  bulk text3

The space after the curly brackets makes the image float to the right. The two backslashes after bulk text1 indicates a regular manual line break. The three backslashes at the end of bulk text2 forces bulk text3 to start below the bottom of the image.

Bugs and issues

Problems with PHP 7.0

This plugin failed on our Dokuwiki instances after we migrated the servers to PHP 7.0 . We ended up using the plugin wrap to achieve the same effect. — KaiMartin 2019-06-14 14:21

plugin/clearer.txt · Last modified: 2020-11-15 19:23 by zaher

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