Well, I am just thinking aloud:
The wiki syntax evolved from SWiki, WikiWorks, and SmallWiki and is a
major pain to parse and generate. You also see that in the tests, some
are marked as expected failures (i.e. link parameters in tables).
The syntax is basically designed to be convenient for humans to write,
so I thought a tool might prefer some other structure? But if it works
well for you, this is cool too :-)
On Tuesday, 19 July 2011, Nick Ager <nick.ager(a)gmail.com> wrote:
Hi,
Ahh, one question: Why do you go through the wiki syntax at all?
Couldn't you submit the document model as something machine-readable
like JSON or XML?
hmm, I guess when I started I assumed it would be easier converting into Pier wiki format
and it allowed me to rapidly verify the parser. Also I'd have to translate from JSON
into PRDocument on the server whereas the wiki -> PRDocument translator is already
written. What do you see as the benefits of translating into a javascript PRDocument type
structure? The one benefit I guess is there are less steps html -> PRDocument vs html
-> wiki syntax -> PRDocument.
Nick
--
Lukas Renggli
www.lukas-renggli.ch