StructuredText -> HTML module??
Thomas Weholt
2002 at weholt.org
Thu Sep 19 08:24:46 EDT 2002
I need to take a piece of structured text as a string into a method and get
html out in the other end. As described on the page on Zope.org under
StructuredText. My hacking with PyWiki gave me a list where each element had
a '<pre>' in front of it etc. I might be using it the wrong way, but ....
I was under the impression that StructuredText as described on the site
mentioned earlier was sort of a standard, that the parser etc. would produce
the same output.
All I'm actually after is to be able to write stuff like :
**Header**
List:
1. Foo
2. Bar
3. Python
Heres an indented section of text.
And turn this into
<h1>Header</h1>
List:
<ol>
<li>foo</li>
<li>bar</li>
<li>Python</li>
</ol>
<P>
<blockquote>
Heres an indented section of text.
<blockquote>
</P>
Or something similar. Since there's allready something that I believed was
standardized it would be easier to use modules allready available than doing
it all from scratch.
Hope that makes it clearer.
Best regards,
Thomas
"Peter Hansen" <peter at engcorp.com> wrote in message
news:3d89b69d$1 at news.sentex.net...
> Thomas Weholt wrote:
> > Need a module to parse StructuredText/Wiki into HTML. Looked at PyWiki,
but
> > the generated code was not what I expected. Does anybody have module or
lib
> > to do this?
>
> Maybe you could help us by telling us *what* you expected.
> Otherwise we're likely to waste our time making suggestions
> that are just as inadequate from your point of view.
>
> (For example, ZWiki... or the Zope structured text stuff.)
>
> -Peter
>
More information about the Python-list
mailing list