I know that a PRDocument is a tree of objects that
correspond to the
structure of a HTML document, such as paragraphs (PRParagraph), list
items (PRListItem) etc. When I edit an existing wiki page, where does
the raw wiki text come from? Is it re-generated from the objects
inside the PRDocument (how?), or is it kept somewhere in a separate
place?
PRDocumentParser parse: aString
gives you a document tree from a wiki string.
and the opposite
PRWikiWriter write: aDocument
gives you the wiki string.
PRTextWriter write: aDocument
gives you a plain text string.
PRViewRenderer new start: aDocument in: aComponent on: html
renders a document as HTML
...
and there are some other output formats, such as LaTeX, RSS, ...
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch