Wiki markup parser

package net.nemein.wiki

 Methods

__construct (\net_nemein_wiki_wikipage $page)

Parameters

$page

get_html ()

get_markdown ($input)

Parameters

$input

replace_wikiwords ($match)

Method for replacing wiki syntax in the document with HTML for display purposes

Parameters

$match

_code_sort_by_title ($a, $b)

Code to sort array by values (which is object) property 'title'

Used by $this->_run_macro_tagged()

Parameters

$a

$b

_run__classed_div ($css_class, $macro_content, $fulltag, $after)

Creates a div with given CSS class(es)

Used by the note, tip and warning macros

Parameters

$css_class

$macro_content

$fulltag

$after

_run_macro_abbr ($macro_content, $fulltag, $after)

Abbreviation support [abbr: Abbreviation - Explanation]

Parameters

$macro_content

$fulltag

$after

_run_macro_nodetoc ($macro_content, $fulltag, $after)

table of contents for the current pages node

Parameters

$macro_content

$fulltag

$after

_run_macro_note ($macro_content, $fulltag, $after)

A notice macro (will display a classed DIV)

Parameters

$macro_content

$fulltag

$after

_run_macro_photo ($macro_content, $fulltag, $after)

Photo inclusion support [photo: GUID]

Parameters

$macro_content

$fulltag

$after

_run_macro_tagged ($macro_content, $fulltag, $after)

Links to other wiki pages tagged with arbitrary tags

Parameters

$macro_content

$fulltag

$after

_run_macro_tip ($macro_content, $fulltag, $after)

A tip macro (will display a classed DIV)

Parameters

$macro_content

$fulltag

$after

_run_macro_warning ($macro_content, $fulltag, $after)

A warning macro (will display a classed DIV)

Parameters

$macro_content

$fulltag

$after

_run_macro_wiki ($macro_content, $fulltag, $after)

WikiPedia term search [wiki: search terms]
todo Switch to InterWiki format instead

Parameters

$macro_content

$fulltag

$after

 Properties

 

\net_nemein_wiki_wikipage $_page

The page we're working on