Title: bug: broken `auto_title` in function signatures · Issue #281 · mkdocstrings/python · GitHub
Open Graph Title: bug: broken `auto_title` in function signatures · Issue #281 · mkdocstrings/python
X Title: bug: broken `auto_title` in function signatures · Issue #281 · mkdocstrings/python
Description: Description of the bug In 1.16.11, if auto_title is set in pymdownx.highlight the added title is not rendered as part of the signature code block. This also breaks the signature code block highlighting. To Reproduce set the following in ...
Open Graph Description: Description of the bug In 1.16.11, if auto_title is set in pymdownx.highlight the added title is not rendered as part of the signature code block. This also breaks the signature code block highligh...
X Description: Description of the bug In 1.16.11, if auto_title is set in pymdownx.highlight the added title is not rendered as part of the signature code block. This also breaks the signature code block highligh...
Opengraph URL: https://github.com/mkdocstrings/python/issues/281
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: broken `auto_title` in function signatures","articleBody":"### Description of the bug\nIn 1.16.11, if `auto_title` is set in `pymdownx.highlight` the added title is not rendered as part of the signature code block. This also breaks the signature code block highlighting.\n\n### To Reproduce\n\nset the following in mkdocs.yml\n``` yml\nplugins:\n - mkdocstrings:\n handlers:\n python:\n options:\n separate_signature: true\n\nmarkdown_extensions:\n - pymdownx.highlight:\n auto_title: true\n```\n\nView any generated documentation\n\n### Expected behavior\ninside div `language-python doc-signature highlight`, the span containing Python should be class `filename`, not `nf`.\n\n### Environment information\n\n- __System__: Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.35\n- __Python__: cpython 3.10.12 (/usr/bin/python)\n- __Environment variables__:\n- __Installed packages__:\n - `mkdocstrings-python` v1.16.10\n\n### Additional context\nPretty sure this is due to this commit: https://github.com/mkdocstrings/python/commit/7f956868f93a766346455fedb296c26787894d5c\nThe regex `\u003cspan class=\"[a-z]+\"\u003e` matches `\u003cspan class=\"filename\"\u003e`. You could use `\u003cspan class=\"[a-z]{1,2}\"\u003e` instead potentially?\n","author":{"url":"https://github.com/nataziel","@type":"Person","name":"nataziel"},"datePublished":"2025-05-30T05:17:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/281/python/issues/281"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:be61e3d9-82e5-fc57-ef1b-e67c0766257c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F64:37CCD2:212B0F7:2C14A42:696B0DB3 |
| html-safe-nonce | 6df33f1e82a7dcf18937462e18471b775d06fb0dab87ad931422a5a7075064ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjY0OjM3Q0NEMjoyMTJCMEY3OjJDMTRBNDI6Njk2QjBEQjMiLCJ2aXNpdG9yX2lkIjoiNTA0MTIyNDg4MjE2MjkyNzg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 58e6eb0674a15706dd8e3b0846402397229eac2cf64148d4bbf6c83284660aed |
| hovercard-subject-tag | issue:3102113989 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mkdocstrings/python/281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef820f127ac97210b8c80efa7e83e1d3b363f4039ba64d1211cfe0e2a6e57d7b/mkdocstrings/python/issues/281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef820f127ac97210b8c80efa7e83e1d3b363f4039ba64d1211cfe0e2a6e57d7b/mkdocstrings/python/issues/281 |
| og:image:alt | Description of the bug In 1.16.11, if auto_title is set in pymdownx.highlight the added title is not rendered as part of the signature code block. This also breaks the signature code block highligh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nataziel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/mkdocstrings/python git https://github.com/mkdocstrings/python.git |
| octolytics-dimension-user_id | 75664361 |
| octolytics-dimension-user_login | mkdocstrings |
| octolytics-dimension-repository_id | 422878404 |
| octolytics-dimension-repository_nwo | mkdocstrings/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 422878404 |
| octolytics-dimension-repository_network_root_nwo | mkdocstrings/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width