Edit - History - Recent changes

It's possible to use txt2tags syntax within PmWiki!

Installation (Edit)

  • Get the following file: http://www.pmwiki.org/pmwiki/uploads/Cookbook/txt2tags.php and save it in your cookbook directory.

    - Add the following line into your local/config.php script: require_once ("cookbook/txt2tags.php");

    http://www.pmwiki.org/wiki/Cookbook/Txt2tags

    Here is the current state of what is working and what is not:

  • Title level : works
  • Numbered Title level : replaced by Title level
  • Table of content based on titles : doesn't work unfortunately.

  • A paragraph is made by one or more lines.
  • A blank line separates them. : seems to work. Default in pm wiki?

  • a percent sign for comments : doesn't work

  • For beautifiers we have bold and italic. : works

  • There is also underline, strike and monospaced. : works

  • a list of items : works
  • More indent opens a sublist : works

  • Two blank lines close all the lists. : one line break is enough to close the list.

  • Change the hyphen by a plus
  • And you have a numbered list : works

  • Definition list : not working

  • A quoted paragraph is prefixed by a TAB. : not working

  • verbatim area : not working

  • Verbatim line prefixed with 3 backquotes. : works

  • Tables : not working

  • single external url links : works (pmwiki behavior)
  • commented url links : works
  • txt2tags style inner links : not working


Samples:

Title level 1(Edit)

Title level 2 (Edit)

Title level 3 (Edit)

Title level 4 (Edit)

1. Numbered Title level 1

1.1. Numbered Title level 2

1.1.1. Numbered Title level 3

(numbered titles are not displayed with number, but as simple headers)

below is a comment

above is a comment

The txt2tags comments are not (yet) working! :(

For beautifiers we have bold and italic.

Double beautifier; with bold and italic is working too.

There is also underline, strike and monospaced.

  • This is a list of items
  • Just use hyphens
    • More indent opens a sublist

      Two blank lines close all the lists.

  1. Change the hyphen by a plus
  2. And you have a numbered list
    1. Same rules apply

An empty item closes the current list. (this behavior is not working)

Definition list
A list with terms
Start term with colon
And its definition follows

(definition list is not working)

A quoted paragraph is prefixed

by a TAB.
More TABs, more deep.

No TAB or blank line, closes quote.

(not working)

A verbatim area is enclosed
      inside three backquotes.
**Marks** are not interpreted
     and spacing is preserved.

(not working too...)

Verbatim line is nice for commands. This time it's working!

Code inside

test txt2tags table (not working) :

Table Heading Table Heading
Table align
lines is
with cell nice!

A separator line:


And a stronger one:
(At least 20 chars)

More tests (Edit)

remote image :

pmwiki style :

http://ifiction.free.fr/images/titre.png

txt2tags style

[http://ifiction.free.fr/images/titre.png]

titre1(Edit)