converting wiki markup to html (or xml)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Parkin

    #1

    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
  • Jarek Zgoda

    #2
    Re: converting wiki markup to html (or xml)

    Tim Parkin napisa³(a):
    [color=blue]
    > 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?[/color]

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

    --
    Jarek Zgoda

    Comment

    • Tim Parkin

      #3
      Re: converting wiki markup to html (or xml)

      Jarek Zgoda wrote:[color=blue]
      > Tim Parkin napisa�(a):
      >
      >[color=green]
      >>I'm trying to convert fragments of wiki markup into fragments of html
      >>(specifical ly 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?[/color]
      >
      >
      > If you consider docutils, markdown or textile (or whatever markup your
      > Wiki uses) an "extra baggage", then answer is "no".[/color]

      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
      [color=blue][color=green][color=darkred]
      >>>[/color][/color][/color]
      from MoinMoin import moinToHtml

      moinFormattedTe xt ="""
      == Some Moin Formatted Text ==

      Para One

      Para Two
      """
      html = moinToHtml(moin FormattedText)

      <<<

      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





      Comment

      Working...