467,076 Members | 942 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,076 developers. It's quick & easy.

converting wiki markup to html (or xml)

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
Jan 22 '06 #1
  • viewed: 2312
Share:
2 Replies
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".

--
Jarek Zgoda
http://jpa.berlios.de/
Jan 23 '06 #2
Jarek Zgoda wrote:
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".


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

Jan 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Donald Firesmith | last post: by
2 posts views Thread by marboti@gmail.com | last post: by
3 posts views Thread by marboti@gmail.com | last post: by
reply views Thread by Yourself | last post: by
2 posts views Thread by pabloski@giochinternet.com | last post: by
reply views Thread by Joshua Kugler | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.