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.
I recently updated my blog from Wordpress to Pelican. This is partly for a reason that my new VPS has a pretty low end configuration and I didn’t feel like installing PHP and then walk the whole deal. Time for trying out something new :) Enter Pelican. Written in Python and totally awesome! For the uninitiated, it is a static blog generator. You write the blog articles offline, and using Pelican you generate the entire blog as static HTML and then push it to your server for updating.