DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:allowindentation

Allow Indentation Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown

plugin Allow using indentation in wiki text and disable rendering indented blocks as a preformatted text.

Last updated on
2021-04-27
Provides
Syntax
Repository
Source

Tagged with indentation, wikitext

By dlisin

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to the latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

Use any indentation you want in your wiki text. Preformatted text will never be rendered.

For example:

    === Indented header! Wow! (probably nobody need this) ===

    this text indented with four spaces


  [[plugin:allowindentation|this link with two]]

  - lists works fine
    - this works
  * any lists

Not indented text.

will be rendered just like:

Works with block plugins too, like wrap or blockquote. Unfortunately, you should put new lines instead of one or \\ after text to make a new paragraph inside indented blocks.

Finally, you can make a readable indentation for your wiki text instead of a useless preformatted blocks. Compare these two things, which one is more readable:

Indented
<WPAP center 60%>
  Text inside block.
  <WRAP>
    Block inside.
  </WRAP>
</WRAP>
Not indented
<WPAP center 60%>
Text inside block.
<WRAP>
Block inside.
</WRAP>
</WRAP>

Consider to use autotabber plugin to enhance your indentation experience.

Change Log

  • 2021-04-27
    • Initial release
  • 2021-04-27.1
    • Version issues

Known Bugs and Issues

  • You should put two new lines instead of one after text to make a new paragraph inside indented blocks.

ToDo/Wish List

  • May be add <pre> as alternative to indentation.
plugin/allowindentation.txt · Last modified: 2021-06-03 15:24 by Aleksandr

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