It's better when it's simple

User Tools

Site Tools


txt2tags Plugin

Compatible with DokuWiki

Adora Belle, Weatherwax, Binky, Ponder Stibbons

plugin Parses txt2tags

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with formatting, markup_language

By Eric Forgeot, derived from markdownextra plugin by Joonas Pulakka and Jiang Le


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually. If installed manually, rename the plugin folder to txt2tags.

Also available on bitbucket:

Installation and usage

Txt2tags light users

(for an occasional usage of txt2tags)

By default, if the page name ends with .t2t suffix, it gets automatically parsed using txt2tags-php.

To use that txt2tags markup in other pages, the content must be embedded in a t2t block. For example:

= Header =

some code


== Header ==

- A
- simple
- list

+ And
+ numbered
+ list

Quite intuitive: 

//italic//, **strong**, __underlined__, --strike-through-- etc.


For the full syntax, refer to

Txt2tags heavy users

(enable txt2tags globally)

If you want to enable txt2tags for the whole website, just delete or comment in action.php this line:

if(substr($ID,-4) != '.t2t') return true; 


You may wish to replace toolbar.php in dokuwiki/inc/ so you'll get a txt2tags-aware toolbar for your dokuwiki installation. For enabling internal link support, you'll also have to replace linkwiz.js into dokuwiki/lib/scripts/

You may wish to enable the table creation wizard, to do so, include this just before the </body> tag, at the end of your template main.php file, like this:

<script src="lib/plugins/txt2tags/tables.js" type="text/javascript"></script>

Power user usage

You can edit config.t2t located in the txt2tags plugin folder (lib/plugins/txt2tags/) of your dokuwiki installation so you can tweak more your txt2tags rendering using regex.


  • 2014-05-19: improved toolbar
  • 2014-05-18: update with an external t2t file to add more control on the result
  • 2012-12-11: Initial release


It's basically a simple adaptation from the markdownextra plugin, using a txt2tags converter instead of the markdown one. While it seems to works well, there might be some glitches. If you find any, please report them on the bug tracker

plugin/txt2tags.txt · Last modified: 2018-06-06 00:18 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