All postprocessors are now run on heading content.
Footnote references are now stripped from heading content. Fixes #660.
A more robust striptags is provided to convert headings to plain text.
Unlike, the markupsafe implementation, HTML entities are not unescaped.
The plain text name, rich html, and unescaped raw data-toc-label are
saved to toc_tokens, allowing users to access the full rich text content of
the headings directly from toc_tokens.
The value of data-toc-label is sanitized separate from heading content
before being written to name. This fixes a bug which allowed markup through
in certain circumstances. To access the raw unsanitized data, retrieve the
value from token['data-toc-label'] directly.
An html.unescape call is made just prior to calling slugify so that
slugify only operates on Unicode characters. Note that html.unescape is
not run on name, html, or data-toc-label.
The functions get_name and stashedHTML2text defined in the toc extension
are both deprecated. Instead, third party extensions should use some
combination of the new functions run_postprocessors, render_inner_html and
striptags.
Fixed
Include scripts/*.py in the generated source tarballs (#1430).
Ensure lines after heading in loose list are properly detabbed (#1443).
Give smarty tree processor higher priority than toc (#1440).
Permit carets (^) and square brackets (]) but explicitly exclude
backslashes (\) from abbreviations (#1444).
In attribute lists (attr_list, fenced_code), quoted attribute values are
now allowed to contain curly braces (}) (#1414).
All postprocessors are now run on heading content.
Footnote references are now stripped from heading content. Fixes #660.
A more robust striptags is provided to convert headings to plain text.
Unlike, the markupsafe implementation, HTML entities are not unescaped.
The plain text name, rich html, and unescaped raw data-toc-label are
saved to toc_tokens, allowing users to access the full rich text content of
the headings directly from toc_tokens.
The value of data-toc-label is sanitized separate from heading content
before being written to name. This fixes a bug which allowed markup through
in certain circumstances. To access the raw unsanitized data, retrieve the
value from token['data-toc-label'] directly.
An html.unescape call is made just prior to calling slugify so that
slugify only operates on Unicode characters. Note that html.unescape is
not run on name, html, or data-toc-label.
The functions get_name and stashedHTML2text defined in the toc extension
are both deprecated. Instead, third party extensions should use some
combination of the new functions run_postprocessors, render_inner_html and
striptags.
Fixed
Include scripts/*.py in the generated source tarballs (#1430).
Ensure lines after heading in loose list are properly detabbed (#1443).
Give smarty tree processor higher priority than toc (#1440).
Permit carets (^) and square brackets (]) but explicitly exclude
backslashes (\) from abbreviations (#1444).
In attribute lists (attr_list, fenced_code), quoted attribute values are
now allowed to contain curly braces (}) (#1414).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the dependencies group in /.config with 6 updates:
2.16.1
2.16.2
0.41.3
0.42.1
3.5.2
3.6
9.5.13
9.5.16
1.8.0
1.9.0
2.21
2.22
Updates
pipdeptree
from 2.16.1 to 2.16.2Release notes
Sourced from pipdeptree's releases.
Commits
3e1a8ff
List pip as dependency (#336)bd4453b
[pre-commit.ci] pre-commit autoupdate (#334)4f3b50e
[pre-commit.ci] pre-commit autoupdate (#332)b4f5085
Bump pypa/gh-action-pypi-publish from 1.8.12 to 1.8.14 (#329)Updates
griffe
from 0.41.3 to 0.42.1Release notes
Sourced from griffe's releases.
Changelog
Sourced from griffe's changelog.
Commits
01da648
chore: Prepare release 0.42.14d31eff
style: Formatc29585a
chore: Switch to Copier UV templatee1216aa
chore: Template upgrade2729c22
fix: Don't return class variables as parameters of dataclasses6835ea3
fix: Don't turn items annotated as InitVar into dataclass membersc88b484
chore: Prepare release 0.42.0a265a9d
docs: Rework sections in docstrings docscdc9e1c
refactor: Warn (debug) when a submodule shadows a member with the same name781437e
docs: Document best practicesUpdates
markdown
from 3.5.2 to 3.6Release notes
Sourced from markdown's releases.
Changelog
Sourced from markdown's changelog.
Commits
e524b8f
Bump version to 3.63d8afc6
Allow attr_list quoted values to contain curly braces9edba85
Refactor abbr escapinge4ab4a6
Refactor TOC sanitationa18765c
Explicitly omit carot and backslash from abbr421f1e8
Give smarty tree processor higher priority than tocc334a3e
Ensure lines after heading in loose list are properly detabbedea92856
Update the license template so GitHub can detect ita2effd6
Disable mkdocstrings show_symbol_type_toc option to work around searching iss...91f9a12
Restore Attribute symbol type in mkdocstrings templateUpdates
mkdocs-material
from 9.5.13 to 9.5.16Release notes
Sourced from mkdocs-material's releases.
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
8956524
Updated Insiders changelog0db4e66
Updated changelog29cf44b
Improved resilience of privacy plugin6c9ba87
Prepare 9.5.16 releasef2bfab9
Updated dependencies9e40207
Updated dependenciesa2cb35d
Improved error handling on social plugin (#6818)abfac1a
Switched to Babel'sformat_datetime
to allow for time in formatted dates (#...01b2dd1
Updated Russian translationsad72336
Fixed social plugin Google Fonts integrationUpdates
mkdocstrings-python
from 1.8.0 to 1.9.0Release notes
Sourced from mkdocstrings-python's releases.
Changelog
Sourced from mkdocstrings-python's changelog.
Commits
e639c8b
chore: Prepare release 1.9.0fad391f
Merge branch 'main' of github.com:mkdocstrings/pythonddf32c6
docs: Enable inline syntax highlightcd93ee3
deps: Add upper bound on Python-Markdown 3.6 to temporarily prevent breaking ...2062325
chore: Template upgrade0dd0b79
chore: Use mkdocstrings' handler-template6364fbc
chore: Template upgradeeaf9b82
feat: Addshow_labels
option to show/hide labels8e86778
docs: Add default value forfind_stubs_package
docs0c6aa32
feat: Add option to search for stubs packagesUpdates
pycparser
from 2.21 to 2.22Release notes
Sourced from pycparser's releases.
Changelog
Sourced from pycparser's changelog.
Commits
129d32e
Prepare for release 2.22c3e2644
update CHANGES file for future changesc500fb6
ply: Make generated lextab.py deterministic (#531)f740995
Add support for Python 3.12 (#515)6cf69df
New example to generate AST from scratch (#507)50a26ac
Remove unneeded import in an exampled86a9e5
Remove from future imports from all files in this repoa9f073e
Remove from future imports in examples670979b
Update SECURITY.md9e8cd29
Create a Security Policy (#499)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show