django-markdown-deux icon indicating copy to clipboard operation
django-markdown-deux copied to clipboard

Setting Extras to None is Confusing

Open mlissner opened this issue 10 years ago • 2 comments

So...I want to allow people to do cuddled lists. So, I'm like, cool, I'll turn on the cuddled-lists extra. And to do that, I set the value to...None.

Could we make it so that the value is instead set to True? I'm finding this super confusing. Even the code-friendly extra...is set to None? What does None mean in this context? I'm not sure I get it.

mlissner avatar Aug 28 '15 18:08 mlissner

https://github.com/trentm/python-markdown2/blob/master/lib/markdown2.py#L1863

In the underlying markdown2 library, it looks like (line 1863) the value set for cuddled-lists could be anything you like; if statement just checks for the presence of the cuddled-list key in extras dict.

chrismcginlay avatar Oct 27 '15 22:10 chrismcginlay

That's interesting and explains how we got to setting it to None. Maybe we should just update our docs to say that it needs to be set to True? But then people will be upset that setting it to False doesn't disable it. Perhaps this needs changing in Markdown2?

mlissner avatar Oct 28 '15 00:10 mlissner