mfiers/mdGraph — pull request #1 by CodeMonk (2012-07-20 19:55:34+00:00)
Title: etree fix

Was getting this when using mdGraph, until I modified the location of etree:

(127) codemonkey@monkeytree ~/W/mdGraph> ~/testmd.py ~/test.md
Traceback (most recent call last):
File "/home/codemonkey/testmd.py", line 9, in
html=md.convert(open(arg).read())
File "/usr/lib/python2.7/dist-packages/markdown/__init__.py", line 283, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/usr/lib/python2.7/dist-packages/markdown/blockparser.py", line 62, in parseDocument
self.parseChunk(self.root, '\n'.join(lines))
File "/usr/lib/python2.7/dist-packages/markdown/blockparser.py", line 77, in parseChunk
self.parseBlocks(parent, text.split('\n\n'))
File "/usr/lib/python2.7/dist-packages/markdown/blockparser.py", line 94, in parseBlocks
processor.run(parent, blocks)
File "/usr/local/lib/python2.7/dist-packages/mdx_mdGraph/__init__.py", line 70, in run
el = markdown.etree.SubElement(parent, "img")
AttributeError: 'module' object has no attribute 'etree'