Name:wikinotes
Created:16-Jul-2007
Modified:never

Notes on Wiki Parsing

This is a WIP.

Escape types

xmlescape

Converts <, >, & to &lt;, &gt;, &amp;

Applies to: everyone

url escape

Same as xmlescape but also but escape " with &quot; OR remap it to single quote '

applies to: img alt text, title text

todo: can we assume input is in UTF-8 or unicode. What about unicode urls?

html escape

Can do textualize, smilely conversion, followed by xmlescape

Applies to: everything

INLINE ELEMENTS

style tags

strong, em, monospaced, etc. can contain other inline tags, but cannot have more than element. Meaning

**//**foo**//**

Should not make

<b><i><b>foo</b></i></b>

Instead

<b><i>**foo**</i></b>

Images

{{ url }}
{{ url | urltext }}

Anchors

[[ anchor/urltext | inlinewikitext, no anchors]]

Anchors are have a URL part, which need to be url-escaped

Display part which needs to be wiki-parsed. It can not contain block-level elements, and it cannot contain more anchors.

Block Elements