class XOrgWiki*
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 28 Jan 2005 21:22:12 +0000 (21:22 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:55 +0000 (23:27 +0200)
commit015a16edf3d2ce3cc68cd7b1e93bbc9678d91365
treec9138e2a0f299c0bc08d133d50fd36e4eece0dfd
parentc7477b37a735cc9a4b505254f5ac82cda2292621
class XOrgWiki*

some classes to parse yawc (yet another wiki code)

atm, only blocks are parsed, the syntax is :

!foo        <h1>foo</h1>
!!foo       <h2>foo</h2>
!!!foo      <h3>foo</h3>
.foo        <pre>foo</pre>
*foo        <ul><li>foo</li></ul>
#foo        <ol><li>foo</li></ol>
>foo        <blockquote>foo</blockquote>
----        <hr />
(empty)     <p></p>
foobar      <p>foobar</p>

special thing :

[op] foo
= bar

    is understood as : <op> foo <br /> bar </op>
    = at the beginning of a line means : stay in the previous block, but with a line break.

Now I have to parse line ops like (i think) :

    **foo** -> <strong>foo</strong>
    __foo__ -> <u>foo</u>
    //foo// -> <em>foo</em>
    [expl|url] -> <a href='url'>expl</a>
    (expl|url) -> <img href='url'>expl</img>

    + automatic url and mailto detections.

    all those thing have to be parsed in _parse_line.

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-406
include/wiki.inc.php [new file with mode: 0644]