Main / Txt2tags

TODO

It's possible to use txt2tags syntax within PmWiki!

Installation

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

Title level 2

Title level 3

Title level 4

Numbered Title level 1

Numbered Title level 2

Numbered Title level 3

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

below is a comment

% and it will be ignored useful for TODOs!

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 HeadingTable Heading
Tablealign |
linesis |
with cellnice! |

A separator line:


And a stronger one:


(At least 20 chars)

More tests

remote image :

pmwiki style :

txt2tags style

titre1

  • bullet 1
  • bullet 2
    • subbullet 1
    • subbullet 2
      • subsubbullet 1
    • subbullet 3

remote image :

pmwiki style :

txt2tags style

Link test