Don't put
around summary tag inside details with markdown flag set? (original) (raw)
The summary tag is a special tag inside details that I think should be ignored when processing internal markdown.
from markdown import markdown from pprint import pprint
a = """
Click to expand table
| Entity | Count |
|---|---|
| Thing 1 | 16 |
| Thing 2 | 9 |
pprint(markdown(a, extensions=["extra"]))
'
\n'
'\n'
'\n'
'
\n'
'
'
Click to expand table
| Entity | \n' 'Count | \n' '
|---|---|
| Thing 1 | \n' '16 | \n' '
| Thing 2 | \n' '9 | \n' '
Note here that there are <p></p> around the summary, but IMO there should not be.