Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Compatible with DokuWiki
Adora Belle, Weatherwax, Binky, Ponder Stibbons
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
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:
(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:
<t2t> = Header = ``` some code ``` Paragraph == Header == - A - simple - list + And + numbered + list Quite intuitive: //italic//, **strong**, __underlined__, --strike-through-- etc. </t2t>
For the full syntax, refer to http://www.txt2tags.org
(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>
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.
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