# Problem Bad markdown to HTML conversion when using <!-- HTML --> comments within the Markdown code. # Recreation Usage of markdown in Python when adding HTML comments. # Error message File "/usr/lib64/python3.2/site-packages/markdown/preprocessors.py", line 226, in run if self.markdown_in_raw and 'markdown' in dict(attrs.keys()): ValueError: dictionary update sequence element #0 has length 5; 2 is required # Solution Line #150 in file: `/usr/lib/python3.2/site-packages/markdown/preprocessors.py` - left_tag, left_index, attrs = "--", 2, () + left_tag, left_index, attrs = "--", 2, {}
The issue has been fixed by upstream in the 2.2 release; please use >=dev-python/markdown-2.2.1-r1.