Repository navigation
Releases
13.1
13.1
- NEW: Snippets: Respect the
Retry-Afterheader when a URL responds with a 429. The server's requested delay is
used instead of our backoff, and the snippet fails right away if it is longer than the longest we would wait
ourselves (backoff_factortimesmax_retries). - NEW: Snippets: Split snippet processing into steps that an extension can override (
parse_snippet_target,
select_snippet_lines, andprocess_snippet_lines) to add notation or change included content, and add
get_syntax_maskto find which lines are snippet notation so they can be left alone. (#3040) - FIX: Fix an issue where only our test environment required Python Markdown 3.10.3. Installs must require this.
- FIX: Snippets: Fix quadratic time complexity when parsing very long runs of
;or-in content, and very long
snippet paths with line ranges. - FIX: Quotes, Details (legacy), Tabbed (legacy), FancyLists, Blocks, and Snippets: Gracefully stop short of the
recursion limit when content is nested too deeply, instead of raising aRecursionError. This includes content
nested inside of a document structure that is already deep, such as a quote or tab inside of many nested lists.
Content past the limit is no longer specially processed (Snippets skips includes past the limit, as it does for
cyclic includes).
13.0
13.0
- BREAK: Arithmatex: Generic mode is now the default mode as the old MathJax script approach has not been
supported in MathJax for a long time now. We still provide script approach and have updated configuration to get it
properly working in recent MathJax versions. - BREAK: Arithmatex: Non-generic mode now escapes content in script to prevent closing
</script>from causing
unintended behavior. Guidance on configuration for non-generic mode has been updated in the documentation. - NEW: Require at least Python Markdown 3.10.3 for performance improvements.
- NEW: Drop Python 3.10 and require Python >= 3.11.5 as possessive quantifiers are broken on lower versions.
- NEW: MagicLink: Bare
http://,https://, andwww.links now follow GFM's extended autolink rules for what
is considered the end of a link (trailing punctuation, entities, unbalanced)and]) and what a link can follow.
Links no longer start after arbitrary punctuation (quotes are still allowed), andhttp://hoststyle links with a
short host are allowed. - FIX: Critic: Fix quadratic (and cubic for substitutions) time complexity when parsing a large number of unclosed
CriticMarkup openers by replacing the regular expression with a linear time scanner. - FIX: PathConverter, B64: Handle elements with unquoted attributes.
- FIX: Arithmatex: Fix
genericmode output whentex_inline_wraportex_block_wrapcontain braces. - FIX: InlineHilite: Fix regression related to unmatched opening and closing.
- FIX: FancyLists: Keep
iandIin alphabetical lists after a blank line. - FIX: BracketSpan: Fix unwanted colon attributes with
{: ...}syntax. - FIX: Snippets: Fix escaped section markers starting or ending a section before its start.
- FIX: StripHTML: Fix crash when
strip_commentsis disabled. - FIX: Quotes: Fix callouts in indented blockquotes.
- FIX: Details, Admonitions, SaneHeaders: Improve performance of header patterns.
- FIX: Blocks.HTML: Improve performance of HTML patterns.
- FIX: MagicLink: Fix URLs with balanced parentheses or brackets losing their closing character.
- FIX: MagicLink: Improve performance of link and email patterns by removing excessive backtracking.
- FIX: ProgressBar: Fix crash on malformed
100percent values like[=100,0%]. - FIX: BracketSpan: Fix text being dropped or misplaced when an unpaired
[precedes a span that is returned from
the cache, e.g.[[]{#a}[b[]{#c}. - FIX: BetterEm, Tilde, Caret, Mark: Apply the CommonMark "rule of 3" so an ambiguous closing delimiter can skip
an incompatible opener and pair with an earlier one, e.g.__[A](u){target="_blank"}__: x. - FIX: BetterEm, Tilde, Caret, Mark: Better handling of Python Markdown placeholders when when evaluating
CommonMark punctuation rules. - FIX: Blocks.Caption: Fix crash when a numbered caption is nested inside a figure not created by the caption
block. - FIX: BetterEm, Tilde, Caret, Mark: Fix text being dropped when a stray delimiter that cannot open or close
appears between delimiter pairs parsed together, e.g.***l* * **e**. - FIX: BetterEm, Tilde, Caret, Mark: Fix text being dropped or misplaced when unused delimiters inside a
parsed span were reprocessed against delimiter pairs found later in the same text. - FIX: Tilde, Caret: Fix a crash when a subscript or superscript with no space allowed starts inside emphasis,
e.g.*a ~b~*withdeletedisabled. - FIX: BetterEm, Tilde, Caret, Mark: Unusable delimiters dropped by another delimiter's region no longer leave
stale space tracking that can reject valid pairs later. - FIX: Blocks.Caption: Fix crash when a numbered caption is nested inside a figure not created by the caption
block.
12.3
12.3
- NEW: BetterEm: Expose a way to disable CommonMark punctuation rules in BetterEm if desired via a new
punctuationoption.
12.2
12.2
- NEW: Add official support for Python 3.15.
- NEW: Tilde, Caret: For backwards compatibility, disable CommonMark punctuation rules by default. If subscript or
superscript is disabled in the respective extension, CommonMark rules will be honored again. A newpunctuation
rule has been added to force CommonMark rules. When done, people will need to be aware of punctuation when subscript
or superscript is enabled and escape any that violates CommonMark rules. - NEW: Highlight: Highlight now allows in the
auto_title_mapspecifying the title as a simple string or a
dictionary containing the title and the title mode: eithertextorhtml, withtextbeing the default. This
allows a title to be specified and treated as HTML when the mode ishtml. - NEW: SuperFences: Add new
title_modeoption for Pygments fenced blocks that allows a user to specify a title
to be treated as HTML viatitle_mode="html".
12.1
12.1
- NEW: SuperFences: Add optional
resetfunction that can be specified for custom fences. - FIX: Tilde, Caret: Fix performance for long invalid delimiters.
12.0.1
12.0.1
- FIX: BetterEm: fix a case with new logic.
12.0
12.0
-
BREAK: BetterEm: Complete rewrite. There may be some subtle differences between legacy behavior and new
CommonMark behavior.*and_emphasis are handled at the same time to provide more natural nesting.- More performant.
- CommonMark compliant.
-
BREAK: Tilde, Caret, Mark: Rewritten and now built upon the latest BetterEm logic.
- When used with BetterEm, Tilde, Caret, and Mark will be added to the same delimiter processor under the hood and
will be parsed at the same time as emphasis, allowing for better nesting logic. - More performant. Performance issues reported by (@lexdotdev).
- Tilde, Caret, Mark: Allow deletion, insertions, and marking mid-word by default. Set
smart_delete,
smart_insert, orsmart_mark, respectively, to enable previous behavior, which prevented mid-word deletion. - Tilde, Caret: Add new option
no_spaceto control whether the Pandoc style requirement of "no unescaped
spaces" is enabled for subscript and superscript, respectively.no_spaceis enabled by default.
- When used with BetterEm, Tilde, Caret, and Mark will be added to the same delimiter processor under the hood and
-
NEW: Details, Blocks.Details, Blocks.Admonitions: Allow and handle headers specially in titles.
-
NEW: Quotes: Allow and handle headers specially in callout titles.
-
NEW: BracketSpan: New extension that allows for the creation of spans using a Pandoc style bracket notation.
-
NEW: Arithmatex: Remove deprecated
inline_mathjax_preview_format,inline_mathjax_format, and
inline_generic_format. Usearithmatex_inline_formatinstead. -
NEW: Arithmatex: Remove deprecated
fence_mathjax_preview_format,fence_mathjax_format, and
fence_generic_format. Usearithmatex_fenced_formatinstead. -
NEW: Emoji: Remove undocumented and deprecated "old style" custom emoji index logic.
-
NEW: Slugs: Remove deprecated
uslugify,uslugify_encoded,uslugify_cased,uslugify_cased_encoded,gfm,
andgfm_encoded. Use the documentedslugifymethod with appropriate arguments instead.
11.0.2
11.0.2
- FIX: InlineHilite: Improve performance of inline code matching.
- FIX: Keys: Fix regex pattern inefficiencies.
- FIX: Blocks.HTML: Fix backtracking in HTML extension.
11.0.1
11.0.1
- FIX: BetterEm: Fix regex pattern inefficiencies.
- FIX: Tilde: Fix regex pattern inefficiencies.
- FIX: Caret: Fix regex pattern inefficiencies.
- FIX: MagicLink: Fix regex pattern inefficiencies.
11.0
11.0
- BREAK: B64: Restricts relative links to
base_pathby default. Can be disabled by setting newrestrict_path
option toFalse. The newroot_pathcan be specified if paths are desired to be restricted to a different
location separatebase_pathwhich is also used as a relative base for image paths. - NEW: Drop Python 3.9 support.
- FIX: Tabbed: Fix issue where an empty title would cause an exception.