darkness

Monday, 30 April 2007

html2markdown updated

darkness @ 00:14:40

I just uploaded html2markdown 0.3. This changes list item indentations (hanging indent, indentation of multiple paragraphs in a list item) and hopefully handles raw HTML (i.e., HTML that is not possible to generate with “Markdown markup,” at least in Markdown.pl) better.

I’ve got a few things I want to do to html2markdown before I announce it on the Markdown list:

  • Make a setup.py for it
  • Maybe clean up test cases, since they’re currently rather non-standard in how they’re generated and run (maybe I could depend on python-markdown instead of Markdown.pl being in the path and executable)
  • Check to make sure it has a sane interface when used as a library (import html2markdown; print html2markdown.convert("---"))
  • Make a nicer web page for it

There may be a few more code cleanups too.

By the way, thanks to Karl Mowatt-Wilson for pointing out that html2markdown and python-markdown don’t get together too well sometimes. That led to the changes in indentation and maybe another fix or two in html2markdown, and I also filed several bugs with python-markdown where it differs from Markdown.pl.

Powered by WordPress