What's the Name of the Python Module that Formats arbitrary Text to nicely looking HTML?

A while ago I came across a Python library that formats regular text to HTML similar to Markdown, reStructuredText and Textile, just that it had no syntax at all. It detected indentatations, quotes, links and newlines/paragraphs only.

Unfortunately I lost the name of the library and was unable to Google it. Anyone any ideas?

Edit: reStructuredText aka rst == docutils. That's not what I'm looking for :)


Okay. I found it now. It's called PottyMouth.

Markdown in python is a python implementation of the perl based markdown utility.

Markown converts various forms of structured text to valid html, and one of the supported forms is just plain ascii. Use is pretty straight forward.

python markdown.py input_file.txt > output_file.html

Markdown can be easily called as a module too:

import markdown
html = markdown.markdown(your_text_string)

Sphinx is a documentation generator using reStructuredText. It's quite nice, although I haven't used it personally.

The website Hazel Tree, which compiles python text uses Sphinx, and so does the new Python documentation.

Need Your Help

Common datetime formats in log files

java datetime date extraction

I'm looking for a list of common datetime formats used in logs (e.g. webserver, database, etc).

jquery doesn't regonzise div width sometimes

javascript jquery

Idea is to get the width of an element and depending on the size do something.