converting wiki markup to html (or xml)

T

Tim Parkin

I'm trying to convert fragments of wiki markup into fragments of html
(specifically using moinmoin markup). I've managed to do this with
MoinMoin but I've had to create a data directory, config file and
underlay. Does anybody know if there a sane way of doing this without
the extra baggage?

Tim Parkin
 
J

Jarek Zgoda

Tim Parkin napisa³(a):
I'm trying to convert fragments of wiki markup into fragments of html
(specifically using moinmoin markup). I've managed to do this with
MoinMoin but I've had to create a data directory, config file and
underlay. Does anybody know if there a sane way of doing this without
the extra baggage?

If you consider docutils, markdown or textile (or whatever markup your
Wiki uses) an "extra baggage", then answer is "no".
 
T

Tim Parkin

Jarek said:
Tim Parkin napisa�(a):




If you consider docutils, markdown or textile (or whatever markup your
Wiki uses) an "extra baggage", then answer is "no".

The extra baggage I was referring to was the config files, data
directory, underlay, requestCLI, etc.

I've looked in vain for a way to do this
from MoinMoin import moinToHtml

moinFormattedText ="""
== Some Moin Formatted Text ==

Para One

Para Two
"""
html = moinToHtml(moinFormattedText)

<<<

I could even live with passing some extra parameters to moinToHtml in
order to configure it. I could even live with having to use StringIO to
convince it it's writing to files if necessary. Having to install a wiki
in order to do this seems excessive.

If anybody has done something similar I'd love to know.

Tim Parkin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top