radude / mdx_truly_sane_lists

Extension for Python-Markdown that makes lists truly sane. Custom indents for nested lists and fix for messy linebreaks and paragraphs between lists.
MIT License
81 stars 10 forks source link

Getting error with read the docs site #14

Open dmundra opened 2 years ago

dmundra commented 2 years ago

Hi,

We use this package for markdown files with our read the docs sites. Here is the build error page https://readthedocs.org/projects/civicactions-handbook/builds/17505286/ and the error:

  File "/home/docs/checkouts/readthedocs.org/user_builds/civicactions-handbook/envs/latest/lib/python2.7/site-packages/mdx_truly_sane_lists/mdx_truly_sane_lists.py", line 91, in run
    lst[-1].insert(0, p)
TypeError: insert() argument 2 must be Element, not Element

Might be related to the #8 change?

Let me know if I can provide any additional information.

Daniel

dmundra commented 2 years ago

After reviewing I think it might be because read the docs is using Python 2.7 version. Confirmed that it is a version issue.