Debian Codegraph @

docs/src/markdown/about/changelog.md

raw
1 ---
2 icon: lucide/scroll-text
3 ---
4 # Changelog
5
6 ## 11.0.1
7
8 - **FIX**: BetterEm: Fix regex pattern inefficiencies.
9 - **FIX**: Tilde: Fix regex pattern inefficiencies.
10 - **FIX**: Caret: Fix regex pattern inefficiencies.
11 - **FIX**: MagicLink: Fix regex pattern inefficiencies.
12
13 ## 11.0
14
15 - **BREAK**: B64: Restricts relative links to `base_path` by default. Can be disabled by setting new `restrict_path`
16 option to `False`. The new `root_path` can be specified if paths are desired to be restricted to a different
17 location separate `base_path` which is also used as a relative base for image paths.
18 - **NEW**: Drop Python 3.9 support.
19 - **FIX**: Tabbed: Fix issue where an empty title would cause an exception.
20
21 ## 10.21.3
22
23 - **FIX**: Snippets: Fix regression that allows a snippet to be loaded outside of the base path using directory
24 traversal when `restrict_base_path` is enabled (the default). Found by @gistrec.
25
26 ## 10.21.2
27
28 - **FIX**: Highlight: Latest Pygments versions cannot handle a "filename" for code block titles of `None`.
29
30 ## 10.21
31
32 - **NEW**: Caption: Add support for specifying not only IDs but classes and arbitrary attributes. Initial work by
33 @joapuiib.
34 - **FIX**: MagicLink: Fix a matching pattern for Bitbucket repo.
35
36 ## 10.20.1
37
38 - **FIX**: Quotes: Ensure the first class for callouts (the alert type) is always rendered lowercase.
39
40 ## 10.20
41
42 - **NEW**: Quotes: New blockquotes extension added that uses a more modern approach when compared to Python Markdown's
43 default. Quotes specifically will not group consecutive blockquotes together in the same lazy fashion that the
44 default Python Markdown does which follows a more modern trend to how parsers these days handle block quotes.
45
46 In addition, Quotes also provides an optional feature to enable specifying callouts/alerts in the style used by
47 GitHub and Obsidian.
48
49 ## 10.19.1
50
51 - **FIX**: Arithmatex: Fix issue where block `$$` math used inline within a paragraph could result in nested math
52 parsing.
53
54 ## 10.19
55
56 - **NEW**: Emoji: Update Twemoji to use Unicode 16.
57 - **NEW**: Critic: Roll back `view` mode deprecation as some still like to use it, though further enhancements to this
58 mode are not planned.
59
60 ## 10.18
61
62 - **NEW**: Critic: `view` mode has been deprecated. To avoid warnings or future issues, explicitly set `mode` to
63 either `accept` or `reject`. In the future, the new default will be `accept` and the `view` mode will be removed
64 entirely.
65 - **FIX**: Block Admonition: `important` should have always been available as a default.
66
67 ## 10.17.2
68
69 - **FIX**: Blocks: Blocks extensions will now better handle nesting of indented style Admonitions, Details, and Tabbed
70 and other non-conflicting blocks.
71
72 ## 10.17.1
73
74 - **FIX**: Fix an issue where Highlight can override another extension in the "registered" list in Python Markdown.
75
76 ## 10.17
77
78 - **NEW**: Allow specifying static IDs in caption block headers via `#id` syntax.
79
80 ## 10.16.1
81
82 - **FIX**: Inefficient regular expression pattern for figure caption numbers.
83
84 ## 10.16
85
86 - **NEW**: Add early support for Python 3.14.
87 - **NEW**: Drop support for Python 3.8.
88 - **NEW**: Snippets: Added `max_retries` and `backoff_retries` options to configure new retry logic for HTTP 429
89 errors (Too Many Requests client error).
90 - **NEW**: Caption: Prefix templates are now preserved exactly as specified allowing the insertion of HTML tags if
91 desired.
92 - **FIX**: Caption: Fix issue where manual numbers in auto were not respected appropriately.
93
94 ## 10.15
95
96 - **NEW**: SuperFences: Add `relaxed_headers` option which can tolerate bad content in the fenced code header. When
97 enabled, code blocks with bad content in the header will likely still convert into code blocks, often respecting
98 the specified language.
99 - **NEW**: Add type hints to the Blocks interface and a few additional files.
100 - **FIX**: Blocks: Fix some corner cases of nested blocks with lists.
101 - **FIX**: Tab and Tabbed: Fix a case where tabs could fail if `combine_header_slug` was enabled and there was no
102 header.
103
104 ## 10.14.3
105
106 - **FIX**: Blocks: An empty, raw block type should not cause an error.
107
108 ## 10.14.2
109
110 - **FIX**: Blocks: Fix some corner cases with `md_in_html`.
111
112 ## 10.14.1
113
114 - **FIX**: MagicLink: Ensure that repo names that start with `.` are handled correctly.
115 - **FIX**: FancyLists: Fix case were lists could be falsely created when a line started with `.` or `)`.
116
117 ## 10.14
118
119 - **NEW**: Blocks.HTML: Add new `custom` option to specify tags and the assumed handling for them when automatic mode
120 is assumed. This can also be used to override the handling for recognized tags with automatic handling.
121 - **FIX**: Fix tests to pass with Pygments 2.19+.
122
123 ## 10.13
124
125 - **NEW**: Snippets: Allow multiple line numbers or line number blocks separated by `,`.
126 - **NEW**: Snippets: Allow using a negative index for number start indexes and end indexes. Negative indexes are
127 converted to positive indexes based on the number of lines in the snippet.
128 - **FIX**: Snippets: Properly capture empty newline at end of file.
129 - **FIX**: Snippets: Fix issue where when non sections of files are included, section labels are not stripped.
130 - **FIX**: BetterEm: Fixes for complex cases.
131 - **FIX**: Blocks: More consistent handling of empty newlines in block processor extensions.
132
133 ## 10.12
134
135 - **NEW**: Blocks: Blocks extensions no longer considered in beta.
136 - **NEW**: Details: Details is marked as "legacy" in documentation in favor of the new `pymdownx.blocks.details` approach.
137 - **NEW**: Tabbed: Tabbed is marked as "legacy" in documentation in favor of the new `pymdownx.blocks.tab` approach.
138 - **NEW**: Caption: Add new "blocks" style extension called Caption which helps with specifying figures with captions.
139 - **NEW**: Emoji: Add a new `strict` option that will raise an exception if an emoji is used whose name has changed,
140 removed, or never existed.
141 - **FIX**: Emoji: Emoji links should be generated such that they point to the new CDN version.
142
143 ## 10.11.2
144
145 - **FIX**: SuperFences: Fix a regression where certain patterns could cause a hang.
146
147 ## 10.11.1
148
149 - **Fix**: SuperFences: Fix regression where an omitted language in conjunction with options in the fenced header
150 can cause a fence to not be parsed.
151
152 ## 10.11
153
154 - **NEW**: SuperFences: Allow fenced code to be parsed in the form ` ```lang {.class #id} `.
155
156 ## 10.10.2
157
158 - **FIX**: BetterEm: Add better support for `*em, **em,strong***` and `_em, __em,strong___` cases.
159 - **FIX**: Caret: Add better support for `*sup, **sup,ins***`.
160 - **FIX**: Tilde: Add better support for `*sub, **sub,del***`.
161
162 ## 10.10.1
163
164 - **FIX**: FancyLists: Remove a mistaken semicolon from injected classes.
165
166 ## 10.10
167
168 - **NEW**: FancyLists: Add new FancyLists extension.
169 - **NEW**: MagicLink: Change social links to support `x` instead of `twitter`. `twitter` is still recognized but is
170 now deprecated and will be removed at a future time.
171 - **NEW**: Emoji: Update Twemoji data to the latest.
172 - **FIX**: PathConverter: Fixes for latest changes in Python regarding `urlunparse`.
173
174 ## 10.9
175
176 - **NEW**: Officially support Python 3.13.
177 - **FIX**: Snippets: Better handling of cases where URL snippet requests contain no header length.
178
179 ## 10.8.1
180
181 - **FIX**: Snippets: Fix snippet line range with a start of line 1.
182
183 ## 10.8
184
185 - **NEW**: Require Python Markdown 3.6+.
186 - **FIX**: Fix some test cases.
187 - **FIX**: Fix warnings due to recent changes in Python Markdown.
188
189 ## 10.7.1
190
191 - **FIX**: SmartSymbols: Ensure symbols are properly translated in table of content tokens.
192
193 ## 10.7
194
195 - **NEW**: Emoji: Update Twemoji and Gemoji data to latest.
196 - **NEW**: Emoji: Due to recent Gemoji update, non-standard emoji are no longer indexed. So emoji such as `:octocat:`
197 are no longer resolved.
198 - **NEW**: Highlight: Added new option `default_lang` which will cause code blocks with no language specifier to be
199 highlighted with the specified default language instead of plain text. This affects indented code blocks and code
200 blocks defined with SuperFences.
201 - **NEW**: InlineHilite: `style_plain_text` can be specified with a language string (in addition to its previous
202 boolean requirement) to treat inline code blocks with no explicit language specifier with a specific default
203 language.
204
205 ## 10.6
206
207 - **NEW**: MagicLink: Allow configuring custom repository providers based off the existing providers.
208
209 ## 10.5
210
211 - **NEW**: Blocks: Admonitions and Details now allow configuring custom block classes and default titles.
212 - **FIX**: Keys: Ensure that Keys does not parse base64 encoded URLs.
213
214 ## 10.4
215
216 - **NEW**: Snippets: Allow PathLike objects for `base_path` to better support interactions with MkDocs.
217 - **FIX**: Block Admonitions: Empty titles should be respected.
218 - **FIX**: Block Details: Empty summary should be respected.
219
220 ## 10.3.1
221
222 - **FIX**: SuperFences: Fix an issue where braces were not handled properly in attributes.
223
224 ## 10.3
225
226 - **NEW**: Officially support Python 3.12.
227 - **NEW**: Drop Python 3.7 support.
228
229 ## 10.2.1
230
231 - **FIX**: Tabbed: Fix regression.
232
233 ## 10.2
234
235 - **NEW**: Highlight: Add new `stripnl` option to configure Pygments' default handling of stripping leading
236 and trailing new lines from code blocks. Mainly affects fenced code blocks.
237 - **FIX**: SuperFences: Fix issue where when SuperFences attempts to test if a placeholder is its own, it can throw
238 an exception.
239
240 ## 10.1
241
242 - **NEW**: Add new `combine_header_slug` option in legacy Tabbed extension and new Block Tab extension that will
243 prefix a content tab's slug with the parent header's slug. This allows for content tab slugs that are scoped to the
244 header they are under.
245
246 ## 10.0.1
247
248 - **FIX**: Regression related to snippets nested deeply under specified base path.
249
250 ## 10.0
251
252 - **Break**: Snippets: snippets will restrict snippets to ensure they are under the `base_path` preventing snippets
253 relative to the `base_path` but not explicitly under it. `restrict_base_path` can be set to `False` for legacy
254 behavior.
255
256 ## 9.11
257
258 - **NEW**: Emoji: Update to new CDN and use Twemoji 14.1.2.
259 - **NEW**: Snippets: Ignore nested snippet section syntax when including a section.
260
261 ## 9.10
262
263 - **NEW**: Blocks: Add new experimental general purpose blocks that provide a framework for creating fenced block
264 containers for specialized parsing. A number of extensions utilizing general purpose blocks are included and are
265 meant to be an alternative to (and maybe one day replace): Admonitions, Details, Definition Lists, and Tabbed. Also
266 adds a new HTML plugin for quick wrapping of content with arbitrary HTML elements.
267 - **NEW**: Highlight: When enabling line spans and/or line anchors, if a code block has an ID associated with it, line
268 ids will be generated using that code ID instead of the code block count.
269 - **NEW**: Snippets: Expand section syntax to allow section names with `-` and `_`.
270 - **NEW**: Snippets: When `check_paths` is enabled, and a specified section is not found, raise an error.
271 - **NEW**: Snippets: Add new experimental feature `dedent_sections` that will de-indent (remove any common leading
272 whitespace from every line in text) from that block of text.
273 - **NEW**: MagicLink: Update GitLab links to match recent changes and to be more correct.
274 - **NEW**: MagicLink: Relax required hash length when performing link shortening.
275
276 ## 9.9.3
277
278 - **FIX**: Highlight: Remove extraneous new lines from end of indented code blocks when using
279 `#!py use_pygments = False`.
280
281 ## 9.9.2
282
283 - **FIX**: Snippets syntax can break in XML comments as XML comments do not allow `--`. Relax Snippets syntax such
284 that `-8<-` (single `-`) are allowed.
285
286 ## 9.9.1
287
288 - **FIX**: Use a different CDN for Twemoji icons as MaxCDN is no longer available.
289
290 ## 9.9
291
292 - **ENHANCE**: BetterEm: Further improvements to strong/emphasis handling:
293 - Ensure that one or more consecutive `*` or `_` surrounded by whitespace are not considered as a token.
294 - **ENHANCE**: Caret: Apply recent BetterEm improvements to Caret:
295 - Fix case where `^^` nested between `^` would be handled in an unexpected way.
296 - Ensure that one or more consecutive `^` surrounded by whitespace are not considered as a token.
297 - **ENHANCE**: Tilde: Apply recent BetterEm improvements to Tilde:
298 - Fix case where `~~` nested between `~` would be handled in an unexpected way.
299 - Ensure that one or more consecutive `~` surrounded by whitespace are not considered a token.
300 - **ENHANCE**: Mark: Apply recent BetterEm improvements to Mark:
301 - Ensure that one or more consecutive `=` surrounded by whitespace are not considered a token.
302
303 ## 9.8
304
305 - **NEW**: Formally declare support for Python 3.11.
306 - **FIX**: BetterEm: Fix case where `**` nested between `*` would be handled in an unexpected way.
307
308 ## 9.7
309
310 - **NEW**: Tabbed: Add new syntax to allow forcing a specific tab to be select by default.
311 - **NEW**: Snippets: Add new option to pass arbitrary HTTP headers.
312 - **NEW**: Snippets: Allow specifying sections in a snippet and including just the specified section.
313
314 ## 9.6
315
316 - **NEW**: Highlight: Allow greater granularity of specifying where language guessing takes place via `guess_lang`
317 option (e.g. `block` vs `inline`).
318 - **NEW**: Tabbed: Add options for generating tab IDs from tab titles.
319 - **NEW**: Snippets: Add support for specifying specific lines for Snippets.
320 - **NEW**: Snippets: Commenting out files in block format no longer requires a space directly after `;`.
321 - **NEW**: Snippets: A new sane way to escape snippets is now available.
322
323 ## 9.5
324
325 - **NEW**: InlineHilite: Custom inline code block formatters can now be forced to raise an exception by raising a
326 `InlineHiliteException`.
327 - **NEW**: Snippets: Add new options to handle importing snippets from URL.
328 - **NEW**: Snippets: Snippets will only swallow missing file errors (unless `check_paths` is enabled), all other
329 errors will be propagated up.
330 - **NEW**: Snippets: When a file or URL is missing, raise `SnippetMissingError` instead of `IOError`.
331 - **FIX**: Snippets: Small issues related to recursive inclusion of snippets.
332
333 ## 9.4
334
335 - **NEW**: Highlight: Changes in order to support Pygments 2.12+. If using Pygments and a version less than 2.12 is
336 installed, Highlight will raise an exception.
337
338 ## 9.3
339
340 - **NEW**: B64: Allow SVG to be encoded and inlined.
341 - **NEW**: PathConverter: Add option to use `file://` prefix on absolute paths.
342 - **FIX**: Highlight: Ensure that `extend_pygments_lang` is not case sensitive regarding language names.
343
344 ## 9.2
345
346 - **NEW**: Drop Python 3.6 support and formally add Python 3.10 support.
347 - **NEW**: Highlight: Add `pygments_lang_option` to enable attaching language classes to Pygments code blocks.
348 - **NEW**: SuperFences: Custom fence validators and formatters can now be forced to raise an exception by raising a
349 `SuperFencesException`.
350 - **NEW**: Keys: Add `power` and `fingerprint` keys.
351 - **FIX**: SuperFences: Fix case where custom fence in a blockquote was not gracefully handled.
352 - **FIX**: Arithmatex: fix issue where if you limit the inline or block syntax to specific input types, access to
353 certain matched groups could cause an error.
354
355 ## 9.1
356
357 - **NEW**: Highlight: If `linenums` is enabled globally via the `highlight` extension, and a code block specifies a
358 line number of zero (e.g. SuperFences), disable line numbers for that code block.
359 - **FIX**: Snippets: Add missing documentation for `auto_append` feature that was added in 8.2.
360 - **FIX**: Highlight: When `attr_list` is enabled, attributes were not properly added to Pygments code blocks in the
361 `table` format. (#1505)
362
363 ## 9.0
364
365 Please see [Migration Notes](./releases/9.0.md) for details on upgrading to 9.0.
366
367 - **NEW**: Arithmatex: Wrap MathJax "script" format (non-preview) with a container element just like all other
368 Arithmatex output formats.
369 - **NEW**: Arithmatex: MathJax (non-generic) form's container element now has the `arithmatex` class added just like
370 everywhere else.
371 - **NEW**: Arithmatex: Add options to override HTML element container type of inline and block math.
372 - **NEW**: Arithmatex: Add new formatter functions intended to replace old math fenced/inline block formatters. New
373 formatter functions are configurable. All others are marked as deprecated and will be removed at some future date.
374 - **NEW**: Emoji: Upgraded Twitter emoji database to support latest emoji. It is a known issue that Twitter has
375 `:man_in_santa_hat:` and `:mx_claus:` backwards -- same for `:mrs_claus:` and `:woman_in_santa_hat:`. That is on
376 Twitter's side, not ours.
377 - **NEW**: Highlight: Add support for the Pygments option `linespans`.
378 - **NEW**: Highlight: Add support for Pygments option `lineanchors`.
379 - **NEW**: Highlight: Add support for Pygments option `anchorlinenos`.
380 - **NEW**: Highlight: Remove `legacy_no_wrap_code` option.
381 - **NEW**: Add support for generating title headers pulled from the Pygments lexer for code blocks. Feature can be
382 enabled via the new `auto_title` option. If a specific name is not preferred, these names can be overridden via
383 a user defined mapping called `auto_title_map`.
384 - **NEW**: SuperFences: Allow setting a title, or overriding an auto title via the new `title` option in a fenced code
385 header.
386 - **NEW**: SuperFences: Allow adding ID and arbitrary `data-` attributes on Pygments code blocks. The latter requires
387 the `attr_list` extension to be enabled.
388 - **NEW**: SuperFences: Removed old deprecated option `highlight_code` which no longer did anything.
389 - **NEW**: SuperFences: Remove legacy code meant to help with transitioning to new custom fence function format.
390 - **NEW**: Tabbed: New alternate style that allows for a scrollable tabs if they overflow. Feature is experimental,
391 see docs for more information.
392 - **NEW**: Slugs: Add new configurable `slugify` function that aims to replace all other slugify methods. Deprecate
393 `uslugify`, `uslugify_encoded`, `uslugify_case`, `uslugify_case_encoded`, `gfm`, and `gfm_encoded`. `slugify` takes
394 parameters returning a function that performs the desired slug handling. `slugify` adds new options `case="fold"`
395 for case folding and `normalize='<normalize format here>'` (uses `NFC` by default).
396 - **FIX**: BetterEm: Fix some complex cases related to "smart" logic. (#1413)
397 - **FIX**: EscapeAll: Fix issue where an escaped HTML entity may end up with incorrect slug and incorrect table of
398 content entry.
399 - **FIX**: Highlight: Fix issue that occurs when showing only nth line numbers and using `pymdownx-inline`. Lines not
400 showing a line number would not render with the proper leading space.
401
402 ## 8.2
403
404 - **NEW**: Snippets: now accepts a list of base paths which will be resolved in the order they are specified.
405 Compatibility is present with legacy behavior, and a single string path will still be accepted.
406 - **NEW**: Snippets: allow for specifying certain snippets to auto-append to every file. Useful for appending
407 abbreviations, reference links, etc.
408 - **NEW**: Snippets: a snippet base path can be a full path to a file. When a base path is a full path to a file, only
409 that file will be included from the specified folder. This allows for targeting a one off file outside of the normal
410 snippet paths(s).
411 - **NEW**: MagicLink: add GitHub Discussions support to MagicLink. Can now use `?<num>` to link discussions. Full
412 discussion links will also be shortened if shortening is enabled. (#1187)
413 - **NEW**: MagicLink: add new `normalize_issue_symbols` option to make issues, pull request, and discussion links all
414 render with `#` instead of `#`, `!`, and `?` respectively. Input syntax is still the same. Great if you want a
415 GitHub style look where all issue types are just rendered with `#`.
416 - **FIX**: MagicLink: documentation will not render links with special icons added via CSS so as not to confuse users
417 that may think that is part of MagicLink. While possible with CSS, MagicLink provides no CSS automatically.
418 - **FIX**: Tabbed &amp; Details: Fix corner case with lists. (#1225)
419 - **FIX**: Fix issue with unescaping logic in code blocks.
420
421 ## 8.1.1
422
423 - **FIX**: Ensure content immediately before Details content or Tabbed content gets preserved.
424 - **FIX**: StripHTML: Fix some corner cases related to stripping comments.
425
426 ## 8.1
427
428 - **NEW**: Drop support for Python 3.5.
429 - **NEW**: Officially support Python 3.9.
430 - **NEW**: Tabbed titles can now have simple Markdown in them which can be parsed and rendered (like emoji, bold,
431 etc.).
432 - **FIX**: Avoid parsing script tags in PathConverter and B64 extensions.
433
434 ## 8.0.1
435
436 - **FIX**: Fix issue with `pymdownx-inline` an Pygments 2.7+.
437
438 ## 8.0
439
440 Please see [Migration Notes](./releases/8.0.md) for details on upgrading to 8.0.
441
442 - **NEW**: Added SaneHeaders extension.
443 - **NEW**: SuperFences \& InlineHilite: gracefully handle failing custom formatters and/or validators. Users should
444 add their own debug code to their formatter/validator if they suspect it isn't working.
445 - **NEW**: SuperFences: if a custom fence validator fails, try the next custom fence until all are exhausted.
446 - **NEW**: SuperFences: no longer allow custom options in the form `key=` (no value). Only keys with values or keys
447 with no value and no `=` are accepted. Keys with no value will now assume the value to be the key name.
448 - **NEW**: SuperFences: if `attr_list` extension is enabled, fenced code that use brace attribute list style headers
449 (` ```{lang #id .class attr=value}`) will attach arbitrary attributes that are included in the header to the code
450 element.
451 - **NEW**: SuperFences: when Pygments is disabled, options (such as `linenums`) included in fenced code headers no
452 longer do anything. If `attr_list` is enabled, and the brace header is used, such options will be treated as HTML
453 attributes. JavaScript highlighter options should be defined in the brace header form with `attr_list` enabled in
454 order to generate appropriate, compatible HTML with the chosen JavaScript highlighter.
455 - **NEW**: SuperFences: backwards incompatible changes where made to custom fence API. See
456 [Migration Notes](./releases/8.0.md) for instructions on how to migrate to the new API. Some temporary support
457 for most of the old format is in place, but is deprecated.
458 - **NEW**: SuperFences: has removed legacy code tab feature. Associated `legacy_tab_classes` option has been removed.
459 Please use the Tabbed extension to create general purpose tabs for code blocks or other content.
460 - **NEW**: Highlight: add new option `language_prefix` which controls the prefix applied to language classes when
461 Pygments is not being used.
462 - **NEW**: Highlight: A new option called `code_attr_on_pre` was added to the Highlight extension and controls whether
463 language classes, and any ids, attributes, and classes that are defined in fenced code attribute list style headers,
464 are attached to the code element or pre element. This has effect when using Pygments.
465 - **NEW**: Highlight: option `linenums` now defaults to `None` and accepts `None`, `True`, or `False`. `None` is
466 disabled by default, but can be enabled per code block. `True` enables line numbers globally. `False` disables
467 globally and cannot be enabled manually per code block.
468 - **NEW**: ExtraRawHTML: remove extension.
469 - **FIX**: Fix issues with complex emphasis combinations in BetterEm.
470 - **FIX**: Details: fix corner cases related to extension and lists.
471 - **FIX**: Tabbed: fix corner cases related to extension and lists.
472 - **FIX**: EscapeAll: Handle HTML entities special.
473 - **FIX**: SuperFences: Fix parameter unpacking bug.
474
475 ## 7.1
476
477 - **NEW**: SuperFences will now allow number ranges in `hl_lines` option. (#878)
478 - **NEW**: Emoji extension now requires custom emoji indexes to take an `options` and `md` argument. The old
479 non-argument format is deprecated and still accepted, but support for indexes with no arguments will be removed at a
480 future time.
481 - **NEW**: Highlight now allows the specifying of a custom line number class when not using Pygments.
482 - **FIX**: Better Arithmatex patterns. Fix issue #888 which caused a hang due to a regular expression typo. Also
483 ensure `#!tex $$..$$` and `#!tex begin{}...end{}` patterns properly don't match if the tail markers are escaped.
484
485 ## 7.0
486
487 Please see [Migration Notes](./releases/7.0.md) for details on upgrading to 7.0.
488
489 - **NEW**: MagicLink will now shorten user name and repository links when link shortening is enabled.
490 - **NEW**: Added MagicLink options `social_url_shortener` and `shortener_user_exclude` were added.
491 - **NEW**: UML examples are now demonstrated with Mermaid in documentation.
492 - **NEW**: SuperFences, if using the attribute list format (` ``` {.lang .additional_class, linenums="1"} `) allows
493 adding additional classes. IDs can be added as well, though Pygments generated code blocks do not have a mechanism
494 to actually insert IDs. The first provided class will always be treated as the language class.
495 - **NEW**: Custom SuperFences' formatters should now also include the keyword parameters`classes` and `id_value` to
496 allow injecting classes and IDs via the now supported attribute list format. If a code block defines no additional
497 IDs and classes, the old form will be used. Formatters should include `**kwargs` at the end to future proof them
498 from future changes.
499 - **NEW**: Deprecate the SuperFences `highight_code` option. As SuperFences syntax has language classes built right
500 in, disabling the `highlight_code` option makes little sense. While `highlight_code` is still accepted, it currently
501 does nothing and will be removed at some future time.
502 - **NEW**: If a custom fence (SuperFences) or inline (InlineHilite) is given the name of `*`, it will override the
503 default fence logic.
504 - **NEW**: SuperFences and InlineHilite no longer sync settings from CodeHilite.
505 - **NEW**: Add new Tabbed extension for general purpose tabbed content in Markdown.
506 - **NEW**: Deprecate old SuperFences tabbed content feature. This will be removed in 8.0.
507 - **NEW**: SuperFences' tabbed content classes have changed from `supferfences-tabs` and `superfences-content` to
508 `tabbed-set` and `tabbed-content` respectively. Old style classes can be enabled with the `legacy_tab_classes`
509 option in SuperFences. This new option will be retired with SuperFences tabbed content feature in 8.0.
510 - **NEW**: Upgrade to Twemoji 12.1.5.
511 - **NEW**: New key codes and key code changes in Keys extension:
512 - Added `super`, `left-super`, and `right-super` key codes as an alternative to `meta`. Aliases `lsuper` and
513 `rsuper` were also added.
514 - Added the `alt-graph` key code with `altgr` alias.
515 - Added the following new aliases: `lwindows` and `rwindows` for consistency.
516 - Added new codes `left-meta` and `right-meta` for consistency with other modifiers. Aliases `lmeta` and `rmeta`
517 were also added.
518 - Added `left-option`, `right-option`, `left-command`, `right-command`, `left-meta`, and `right-meta` codes for
519 consistency across similar modifier keys. Additional aliases were added as well: `loption`, `roption`, `lopt`,
520 `ropt`, `left-opt`, `right-opt`, `lcommand`, `rcommand`, `lcmd`, `rcmd`, `left-cmd`, `right-cmd`, `lmeta`, and
521 `rmeta`.
522 - `alt` no longer uses `menu`, `lmenu`, and `rmenu` as key aliases. `context-menu` now uses the alias `menu`.
523 `context-menu` will display with `Menu` now.
524 - **FIX**: Numerous deprecation warnings associated with the recent release of Python Markdown 3.2.
525 - **FIX**: Ensure ExtraRawHTML raises a deprecation warning.
526
527 ## 6.3
528
529 - **NEW**: `pymdownx.extrarawhtml` is now deprecated in favor of Python Markdown's `md_in_html` extension found in the
530 3.2 release.
531 - **NEW**: When using Pygments 2.4+, code under `pre` elements will also be wrapped in `code` blocks:
532 `#!html <pre><code></code></pre>`. `legacy_no_wrap_code` option has been provided as a temporary way to get the old
533 behavior during the transition period, the option will be removed in the future.
534 - **NEW**: Remove deprecated `version` and `version_info`.
535 - **FIX**: Allow single word hostnames in MagicLink auto-link.
536
537 ## 6.2.1
538
539 - **FIX**: Fix issue in PathConverter where Windows path conversion from relative to absolute doesn't always work in
540 all browsers.
541
542 ## 6.2
543
544 - **NEW**: Upgrade Twemoji to use 12.1.3.
545 - **NEW**: Downgrade and lock EmojiOne version 2.2.7. 2.2.7 is the last truly free version of EmojiOne. This is the
546 safest version that users should use. EmojiOne will not be updated anymore as they are now JoyPixels and have a
547 license that is not that permissible. We've reverted support for any version greater than 2.2.7 to ensure we don't
548 accidentally cause a user to improperly use JoyPixels' assets.
549 - **NEW**: Drop specialized `to_awesome` generator for EmojiOne.
550 - **FIX**: MagicLink: match the auto-link pattern in the current Markdown package.
551 - **FIX**: Fix fenced math escape issue when using MathJax script output format.
552
553 ## 6.1
554
555 - **NEW**: Upgrade Twemoji to 12.1.2 using the latest JoyPixels' (formally EmojiOne) short name index in
556 @JoyPixels/emoji-toolkit 5.0.4.
557 - **NEW**: Upgrade EmojiOne to 4.5.0 to the last release in the 4+ series. EmojiOne was rebranded as JoyPixels, but
558 while the index is licensed under MIT, the image assets are no longer as permissible as they once were. The Emoji
559 extension will only reference the last release under the older more permissible license (4.5.0). The option to use
560 the CDN with EmojiOne 2.7 is still available as well which used an even more permissible license.
561 - **NEW**: Upgrade Gemoji to 3.0.1.
562 - **NEW**: `version` and `version_info` are now accessible via the more standard form `__version__` and
563 `_version_info__`. The old format, while available, is now deprecated.
564 - **FIX**: Fix GitHub emoji CDN links to use their latest.
565 - **FIX**: Fix issue where entities in the form `&#35;` would trigger MagicLink's shorthand for issues.
566 - **FIX**: Don't install tests when installing package.
567 - **FIX**: Fix for BetterEm case `**Strong*em,strong***`.
568 - **FIX**: Fixes for non-word character boundary cases in BetterEm, Caret, Mark, and Tilde extensions.
569
570 ## 6.0
571
572 Please see [Migration Notes](./releases/6.0.md) for details on upgrading to 6.0.0.
573
574 - **NEW**: Allow custom inline highlight code blocks. (!380)
575 - **NEW**: SuperFences now has one custom format convention which now also accepts the markdown class object to allow
576 access to meta.
577 - **NEW**: SuperFences no longer adds `flow` and `sequence` as default custom fences. Users will need to configure
578 them themselves.
579 - **NEW**: Add new SuperFences formatters in Arithmatex that are compatible with SuperFences' custom fence feature and
580 InlineHilite's custom inline feature. (!380)
581 - **NEW**: Requires Python Markdown 3.0.1 and utilizes the new priority registry when adding extensions and uses the
582 new inline processor API instead of the old methodology.
583 - **NEW**: Better aliases for Twemoji specific emoji.
584 - **NEW**: Upgrade support for EmojiOne to 4.0.0 and Twemoji to 11.2.0.
585 - **FIX**: Fixes to SuperFences behavior of "preserve tabs" vs "normal" operations.
586 - **FIX**: Fixes to PathConverter's output. (#392)
587 - **FIX**: Remove unnecessary path code in B64.
588 - **FIX**: Fix issues with double escaping entities in code blocks after Python Markdown 3.0 update.
589
590 ## 5.0
591
592 - **NEW**: Add validator to custom fences so custom options can be used. (!350)
593 - **NEW**: Add global `linenums_special` option to Highlight extension. Can be overridden per fence in SuperFences.
594 (!360)
595 - **NEW**: Add `linenums_style` option to set line number output to Pygments `table` or `inline` format. Also provide
596 a custom `pymdownx-inline` format for more sane inline output in regards to copy and paste. See Highlight
597 documentation for more info. (!360)
598 - **NEW**: Remove deprecated Github and PlainHTML extension. Remove deprecated Arithmatex option `insert_as_script`
599 and deprecated MagicLink option `base_repo_url`.
600 - **FIX**: Add workaround in Highlight extension for line number alignment issues in Pygments with certain `step`
601 values. (!360)
602
603 ## 4.12
604
605 - **NEW**: Add option to fail if specified snippet isn't found. (#335)
606 - **FIX**: Windows issue with `preserve_tabs` option in SuperFences. (#328)
607
608 ## 4.11
609
610 - **NEW**: Allow Arithmatex's "smart dollar" logic to be turned off via setting the option `smart_dollar` to `False`.
611 (#297)
612 - **NEW**: Add support for tabbed groups in SuperFences.
613
614 ## 4.10.2
615
616 - **FIX**: Failure with code highlight when guessing is enabled, but a bad language name is provided.
617
618 ## 4.10.1
619
620 - **FIX**: Update Twemoji to 2.6.0 and EmojiOne 3.1.3.
621
622 ## 4.10
623
624 - **NEW**: SuperFences now adds experimental support for preserving tabs in fenced code blocks. (#276)
625
626 ## 4.9.2
627
628 - **FIX**: Issues with task lists that span multiple lines. (#267)
629 - **FIX**: Require latest Python Markdown.
630
631 ## 4.9.1
632
633 - **FIX**: Output issue when no user and/or repository is specified.
634
635 ## 4.9
636
637 - **NEW**: Add option to make task lists editable. (!249)
638 - **FIX**: Remove internal references to deprecated options.
639
640 ## 4.8
641
642 - **NEW**: Set progress bar class level increments via `progress_increment` instead of using the hard coded value of
643 `20`.
644 - **FIX**: Compatibility changes for next Markdown release.
645
646 ## 4.7
647
648 - **NEW**: Bring back generic output for Arithmatex. Now under the `generic` option. (#185)
649 - **FIX**: StripHTML should allow space before close of opening tag.
650 - **FIX**: MagicLink should not auto-link inside a link. (#151)
651
652 ## 4.6
653
654 - **NEW**: Arithmatex now *just* uses the script wrapper output as it is the most reliable output, and now previews
655 can be achieved by providing a span with class `MathJax_Preview` that gets auto hidden when the math is rendered.
656 `insert_as_script`, `tex_inline_wrap`, and `tex_block_wrap` have all been deprecated as they are now entirely
657 unnecessary. A new option has been added called `preview` that controls whether the script output generates a
658 preview or not when the rendered math output is loading. Users no longer need to configure `tex2jax.js` in there
659 MathJax configuration anymore. (#171)
660 - **NEW**: PlainHTML has been renamed to StripHTML. `strip_attributes` is now a list instead of a string with a
661 default of `[]`. `pymdownx.plainhtml` is still available with the old convention for backwards compatibility, but
662 will be removed for version 5.0. (!176)
663 - **FIX**: PlainHTML has better script and style content avoidance to keep from stripping HTML tags and attributes
664 from style and script content. (!174)
665 - **FIX**: PlainHTML can strip attributes that are not quoted. (!174)
666
667 ## 4.5.1
668
669 - **FIX**: If an invalid provider is given, default to `github`. If no `user` or `repo` is specified, do not convert
670 links that depend on those default values. (#169)
671
672 ## 4.5
673
674 - **NEW**: Add GitLab style compare link shorthand and link shortening. (#160)
675 - **NEW**: Deprecate GitHub extension. It is now recommended to just include the extensions you want to create a
676 GitHub feel instead of relying on a an extension to package something close-ish. (#159)
677
678 ## 4.4
679
680 - **NEW**: Add social media mentions -- Twitter only right now. (#156)
681 - **FIX**: Use correct regular expression for GitLab and Bitbucket.
682
683 ## 4.3
684
685 - **NEW**: Shorthand format for referencing non-default provider commits, issues, pulls, and mentions. (!147)
686 - **NEW**: Shorthand format for mentioning a repo via `@user/repo`. (!149)
687 - **NEW**: Add repository provider specific classes. (!149)
688 - **NEW**: Make repository labels configurable. (!149)
689 - **FIX**: Adjust pattern boundaries auto-links.
690
691 ## 4.2
692
693 - **NEW**: MagicLink can now auto-link a GitHub like shorthand for repository references. (!139)
694 - **NEW**: MagicLink now renders pull request links with a slightly different output from issues. (!139)
695 - **NEW**: Deprecate `base_repo_url` in MagicLink in favor of the new `provider`, `user`, and `repo`. (!139)
696 - **NEW**: MagicLink now adds classes to repository links. (!139)
697 - **NEW**: MagicLink now adds title to repository links. (!139)
698 - **NEW**: MagicLink no longer styles repository commit hashes as code. (!143)
699 - **FIX**: MagicLink repository link outputs now better reflect default user and repository context. (!143)
700 - **FIX**: PlainHTML should not strip tags that are part of JavaScript code. (!140)
701
702 ## 4.1
703
704 - **NEW**: Details can now have multiple classes defined.
705
706 ## 4.0
707
708 - **NEW**: Details extension will now derive a title from the class if only a class is provided. (#107)
709 - **NEW**: Remove deprecated legacy emoji generator format.
710 - **NEW**: Remove deprecated `use_codehilite_settings`.
711 - **NEW**: Remove deprecated `spoilers` extension redirect.
712 - **NEW**: Update emoji databases: EmojiOne (3.1.2) and Twemoji to .(2.5.0)
713
714 ## 3.5
715
716 - **NEW**: Add new slugs to preserve case. (!103)
717 - **NEW**: Add new GFM specific slug (both percent encoded and normal) that only lowercases ASCII chars just like GFM
718 does. (#101)
719 - **FIX**: PathConverter should not try and convert obscured email address (with HTML entities). (#100)
720 - **FIX**: Don't normalize Unicode in slugs with `NFKD`, use `NFC` instead. (#98)
721 - **FIX**: Don't let EscapeAll escape CriticMarkup placeholders. EscapeAll will no longer escape `STX` and `ETX`;
722 they will just pass through. (#95)
723 - **FIX**: Replace CriticMarkup placeholders after replacing raw HTML placeholders. (#95)
724
725 ## 3.4
726
727 - **NEW**: Renamed Spoilers to Details
728 - **NEW**: No longer attach the `spoilers` class to `details` tags.
729 - **NEW**: Provide better example of UML script in documents.
730
731 ## 3.3
732
733 - **NEW**: Added support for pull request link shortening in MagicLink. (!88)
734 - **NEW**: Added new Spoilers extension. (#85)
735
736 ## 3.2.1
737
738 - **FIX**: Cannot set Highlight's CSS class.
739
740 ## 3.2
741
742 - **NEW**: Add support for Twemoji 2.3.5.
743 - **NEW**: Update to EmojiOne 3.0.2.
744 - **NEW**: Emoji generators now also take `category` which is also no included in all indexes.
745 - **FIX**: Excessive new lines at end of code blocks.
746
747 ## 3.1
748
749 - **NEW**: Highlight extension now runs normal indented code blocks through highlighter.
750 - **FIX**: When Pygments is disabled, `linenums` class was attached to code blocks even if `linenums` was disabled and
751 not enabled via fence headers.
752
753 ## 3.0
754
755 - **NEW**: Added Keys extension.
756 - **NEW**: Generalized custom fences (#60). `flow` and `sequence` fence are now just custom fences and can be disabled
757 simply by overwriting the `custom_fences` setting.
758 - **NEW**: Remove deprecated `no_nl2br` in GitHub extension. (#24)
759 - **NEW**: Remove deprecated HeaderAnchor extension. (#24)
760 - **NEW**: Remove deprecated PyMdown extension. (#24)
761 - **NEW**: Remove deprecated GitHubEmoji extension. (#24)
762 - **NEW**: Remove deprecated `nested` option in SuperFences. (#24)
763 - **NEW**: Wrapper extensions (such as GitHub and Extra) can now allow setting the included sub extensions settings
764 (#61). Workaround settings that directly set specific extensions settings has been removed.
765 - **NEW**: Deprecated `use_codehilite_settings` in SuperFences and InlineHilite and now does nothing. The settings
766 will be removed in the future. If `pymdownx.highlight` is used, it's settings will be used instead of CodeHilite.
767 Eventually, the both SuperFences and InlineHilite will require `pymdownx.highlight` to be used and will have
768 CodeHilite support stripped.
769 - **FIX**: Fix MathJax CDN references and usage in documentation. MathJax CDN is shutting down and must now use
770 Cloudflare CDN. (#63)
771
772 ## 2.0
773
774 - **NEW**: SuperFences and InlineHilite can be configured via the new Highlight extension.
775 - **NEW**: InlineHilite now has all highlighting features pushed to the Highlight extension. This removes all the
776 CodeHilite code that used to be in it and instead relocates it to Highlight.
777 - **NEW**: Deprecate the nesting option in SuperFences. Nesting is default and the only acceptable behavior moving
778 forward. The ability to turn off nesting will be removed in 3.0.
779
780 ## 1.8
781
782 - **NEW**: MagicLink special repository link shortener for GitHub, GitLab, and Bitbucket. (#49)
783 - **FIX**: GitHub asterisk emphasis should never have had smart enabled for it. (#50)
784 - **FIX**: MagicLink fix for compatibility with wrapped symbols like `~`, `*` etc. which are commonly used.
785 - **FIX**: MagicLink encodes emails like Python Markdown does for consistency.
786 - **FIX**: MagicLink doesn't allow Unicode for email and does allow Unicode in a URL. (#53)
787 - **FIX**: InlineHilite now returns a proper `etree` element so that the `attr_list` extension and function properly
788 with it. (#48)
789 - **FIX**: InlineHilite will no longer break if Pygments is not installed (478b410a2199d55f3e70b452516511d3810c61a5).
790
791 ## 1.7
792
793 - **NEW**: Arithmatex now supports `\(...\)`, `\[...\]`, and `\begin{}...\end{}`.
794 - **NEW**: Arithmatex has an option to embed the math code in MathJax script tags.
795 - **FIX**: Unfortunately the wrap option is now run through an HTML escaper and HTML tags can no longer be fed in this
796 way. Arithmatex also now wraps "wrapped" content with spans to containerize content and keep one equation from
797 bleeding into the next.
798 - **FIX**: Better handling of escaped Arithmatex inline tokens.
799 - **FIX**: Better handling of escaped InlineHilite tokens.
800 - **FIX**: Update InlineHilite and SuperFences so that the language option can accept things like `c#` and `.net` etc.
801 - **FIX**: Snippets now removes carriage returns from imported files to prevent breakage.
802
803 ## 1.6.1
804
805 - **FIX**: Don't install tools or tests folder when installing from Pypi.
806
807 ## 1.6
808
809 - **NEW**: EscapeAll has the option to perform more like Pandoc in that you can enable escaped newlines to be
810 `hardbreaks`, and escaped spaces to be `nbsp`.
811 - **NEW**: Rework poorly thought out snippets format to require quoting file names with single line format. Add a
812 block format. Allow commenting out lines temporarily. And allow a way to escape them by placing a space after
813 them.
814 - **FIX**: Fix documentation issues.
815
816 ## 1.5
817
818 - **NEW**: New EscapeAll extension.
819 - **NEW**: New Snippets extension for including external files into a Markdown file.
820 - **NEW**: Arithmatex now has configurable output wrapper.
821 - **NEW**: PathConverter no longer verifies existence of path to allow it more flexible usage.
822 - **NEW**: PathConverter now only converts relative paths when converting to a relative or absolute location.
823 - **NEW**: Improved support for path identification for PathConverter and B64.
824 - **FIX**: Fixed issue where Arithmatex was un-escaping `$` within math region.
825 - **FIX**: Fixed issue where plugins would append globally changing the escape list opposed to just in the in the
826 Markdown instance.
827 - **FIX**: Fixed logic issue where the `mark`, `caret`, and `tilde` extension weren't quite modeling `betterem` inline
828 behavior.
829 - **FIX**: Critics shouldn't allow escaping critic marks as it is not in the spec.
830
831 ## 1.4
832
833 - **NEW**: HeaderAnchor extension is now deprecated. It will be removed in a future version.
834 - **NEW**: HeaderAnchor is no longer included in the `pymdownx.github` extension.
835 - **NEW**: Slugify functions are moved to `pymdownx.slug` in preparation of HeaderAnchor removal.
836 - **FIX**: GitHubEmoji is not "pending" deprecation, but is actually deprecated.
837
838 ## 1.3
839
840 - **NEW**: New Emoji extension that aims to replace GitHubEmoji. By default it is configured for EmojiOne and Gemoji
841 (GitHub's emoji).
842 - **NEW**: GitHubEmoji is deprecated. Please use the Emoji extension instead.
843 - **NEW**: PyMdown extension is deprecated. PyMdown extension was just a wrapper, please configure the desired
844 individual extension(s) instead of relying on PyMdown.
845 - **NEW**: `github` extension now turns off `nl2br` by default in order properly emulate recent changes in GFM.
846 `no_nl2br` option is deprecated and will be removed in the future as it no longer reflects GFM behavior.
847
848 ## 1.2
849
850 - **NEW**: Add option to output task lists in a more customizable way.
851
852 ## 1.1
853
854 - **NEW**: Add pypi 3.5 info in setup
855 - **NEW**: Add option to MagicLink extension to allow the stripping of link protocols (`http://` etc.).
856 - **NEW**: Add option to `github` extension to disable the use of `nl2br` to reflect recent changes to GitHub Flavored
857 Markdown. Currently the default is the legacy (uses `nl2br`), but a warning will be displayed. In the future, the
858 option will be defaulted to not use `nl2br`.
859
860 ## 1.0.1
861
862 - **FIX**: Ordinal number 11th, 12th, and 13th
863
864 ## 1.0.0
865
866 - **NEW**: Initial release.