markdown-to-json icon indicating copy to clipboard operation
markdown-to-json copied to clipboard

List has no Attribute Items

Open x4dr opened this issue 5 years ago • 0 comments

#stuff  
##Test  
a  
b   

breaks with

  File "/usr/bin/md_to_json", line 11, in <module>
    load_entry_point('markdown-to-json==1.0.0', 'console_scripts', 'md_to_json')()
  File "/usr/lib/python3.8/site-packages/markdown_to_json/scripts/md_to_json.py", line 86, in main
    return jsonify_markdown(
  File "/usr/lib/python3.8/site-packages/markdown_to_json/scripts/md_to_json.py", line 68, in jsonify_markdown
    rendered = renderer.stringify_dict(nested)
  File "/usr/lib/python3.8/site-packages/markdown_to_json/markdown_to_json.py", line 114, in stringify_dict
    for k, v in d.items()
AttributeError: 'list' object has no attribute 'items'

expectations {"stuff": "Test":["a","b"]} or {"stuff": "Test":["a\nb"]} or {"stuff": "Test":["a \nb "]} if whitespace is preserved

x4dr avatar Jan 27 '20 14:01 x4dr