A Python implementation of John Gruber’s Markdown with Extension support.
OTHER License
Bot releases are hidden (Show)
striptags
is provided to convert headings to plain text.markupsafe
implementation, HTML entities are not unescaped.name
, rich html
, and unescaped raw data-toc-label
aretoc_tokens
, allowing users to access the full rich text content oftoc_tokens
.data-toc-label
is sanitized separate from heading contentname
. This fixes a bug which allowed markup throughtoken['data-toc-label']
directly.html.unescape
call is made just prior to calling slugify
so thatslugify
only operates on Unicode characters. Note that html.unescape
isname
, html
, or data-toc-label
.get_name
and stashedHTML2text
defined in the toc
extensionrun_postprocessors
, render_inner_html
andstriptags
.scripts/*.py
in the generated source tarballs (#1430).^
) and square brackets (]
) but explicitly exclude\
) from abbreviations (#1444).attr_list
, fenced_code
), quoted attribute values are}
) (#1414).