Don't put

around summary tag inside details with markdown flag set? · Issue #1079 · Python-Markdown/markdown (original) (raw)

@fiendish

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' '

Click to expand table

\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '
EntityCount
Thing 116
Thing 29
\n' '
'

Note here that there are <p></p> around the summary, but IMO there should not be.