DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:txt2tags

This is an old revision of the document!


txt2tags plugin

Compatible with DokuWiki

Adora Belle, Weatherwax, Binky, Ponder Stibbons

plugin Parses txt2tags.

Last updated on
2014-05-18
Provides
Syntax
Repository
Source

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

Download and Installation

Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually. (hint: copy it into dokuwiki/lib/plugins/)

Also available on bitbucket:

Copy config.t2t at the root of your dokuwiki installation so you can tweak more your txt2tags rendering. (note: if you don't modify your .htaccess, this configuration file could be world-wide read, so keep in mind not including sensible data there).

Usage

If the page name ends with .t2t suffix, it gets automatically parsed using txt2tags-php. To use that markup in other pages, the content must be embedded in a txt2tags 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 complete syntax, refer to http://www.txt2tags.org

Change Log

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

Discussion

Feature requests:

Bugs:

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

Support:

Notes:

This version enables txt2tags markup only on pages which has the .t2t extension. If you want to enable txt2tags for the whole website (some dokuwiki elements in the admin panel, especially titles, can be incorrectly rendered then), just delete or comment in action.php this line:

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

In this case, you may wish to replace toolbar.php in dokuwiki/inc/ so you'll get a txt2tags-aware toolbar for your dokuwiki installation.

plugin/txt2tags.1400449810.txt.gz · Last modified: 2014-05-18 23:50 by 82.252.218.197

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