Pelican Markdown Exception Fix
I got this particular error while trying to run Pelican to output HTML on the imported articles from Wordpress.
| File "/usr/lib/python3.5/site-packages/markdown/extensions/attr_list.py", line 35, in _handle_double_quote
| k, v = t.split('=')
| ValueError: too many values to unpack (expected 2)
After some digging around, I found out that the problem is with the
Markdown library used in Pelican. Specifically, in the attr_list
extension. After careful examination, I found out that presence of \n
characters in the inline attribute
list produced by pandoc (which is used by pelican-import
to convert HTML documents to
markdown for editing) is responsible for the problem. So, I have opened an
issue. Let me see how it goes.
Now comes the hard part of waiting for the maintainer to look over it and respond. Keeping my fingers crossed.
Read other posts