Markdown footnote reset issue #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is probably a documentation issue more than anything else. When configuring Markdown, the first instinct is probably to use a configured
markdown.Markdowninstance inMARKUP_FIELD_TYPES. However, Markdown instances need to be explicitly reset (Markdown.reset()) after rendering to avoid issues such as this waylan/Python-Markdown#401 (I tripped on this, so here I am).markdown.markdownhandles this automatically, so the proper way, probably, to go about this is to usedjango.utils.functional.curry(or own similar function) to wrap it (like you do when you're adding Pygments extension) and add configuration inMARKUP_FIELD_TYPES. This should probably be mentioned in documentation.thanks for this report, had no idea! I'll look at getting a fix in next time I have a few spare cycles