Title: bug: class and function names inside h5 are uppercase / missing .code class for names? · Issue #276 · mkdocstrings/python · GitHub
Open Graph Title: bug: class and function names inside h5 are uppercase / missing .code class for names? · Issue #276 · mkdocstrings/python
X Title: bug: class and function names inside h5 are uppercase / missing .code class for names? · Issue #276 · mkdocstrings/python
Description: Description of the bug It is similar/related to squidfunk/mkdocs-material#7734 which resulted in this fix The issue is that the text inside h5 headers (class names, function names) is converted to uppercase. Since there is a fix already ...
Open Graph Description: Description of the bug It is similar/related to squidfunk/mkdocs-material#7734 which resulted in this fix The issue is that the text inside h5 headers (class names, function names) is converted to ...
X Description: Description of the bug It is similar/related to squidfunk/mkdocs-material#7734 which resulted in this fix The issue is that the text inside h5 headers (class names, function names) is converted to ...
Opengraph URL: https://github.com/mkdocstrings/python/issues/276
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: class and function names inside h5 are uppercase / missing .code class for names?","articleBody":"### Description of the bug\n\nIt is similar/related to https://github.com/squidfunk/mkdocs-material/issues/7734 which resulted in [this fix](https://github.com/squidfunk/mkdocs-material/commit/b3f1eb27fe4ff3f050a84173b0c998323bb120c1#diff-187ba8c85f1aa9af70a95f5243a13376d102ecdec56b535212db5478a4f00769R149)\n\nThe issue is that the text inside h5 headers (class names, function names) is converted to uppercase.\n\nSince there is a fix already in the `mkdocs-material` itself, which disables this `uppercase` formatting inside `h5.code` CSS class, maybe all the class/function names should have the `.code` class? \n\n\n\n### To Reproduce\n\nEnable the `show_submodules` option and have a nested submodules structure, so `h5` header will be created for class/function.\n\nLike :\n1. Declare in mkdocs.yml\n\n```yaml\nplugins:\n - mkdocstrings:\n default_handler: python\n handlers:\n python:\n options:\n show_submodules: true\n```\n\n2. Define a class like `mypackage.exceptions.account_errors.AccountNotFoundError`\n\n\n### Expected behavior\nThe class names (and function names) will be the same as in the python code. (so `AccountNotFoundError` and not `ACCOUNTNOTFOUNDERROR`)\n\n### Environment information\n\n- cpython 3.12.3\n- mkdocs 1.6.1\n- mkdocstrings-python 1.16.10\n- mkdocs-material 9.6.12\n\n\n### Additional context\n\nI think it is related to: https://github.com/squidfunk/mkdocs-material/issues/1522 and https://github.com/squidfunk/mkdocs-material/issues/7734, which resulted in [this fix](https://github.com/squidfunk/mkdocs-material/commit/b3f1eb27fe4ff3f050a84173b0c998323bb120c1#diff-187ba8c85f1aa9af70a95f5243a13376d102ecdec56b535212db5478a4f00769R149)\n\nThe workaround seems to be:\n\n```css\nh5 .doc-object-name {\n text-transform: none;\n}\n```\n\ndefined in the `extra.css`\n","author":{"url":"https://github.com/mzebrak","@type":"Person","name":"mzebrak"},"datePublished":"2025-05-05T10:48:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/276/python/issues/276"}
| 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:2e15079c-59b7-1d83-01ac-04f9907107b4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A372:2D09CE:C94681:1061B35:696B2989 |
| html-safe-nonce | bcad1bd35a501e7e5faf1403384d47d73d7fe8fd1c45f7e881492b6c109b8554 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzcyOjJEMDlDRTpDOTQ2ODE6MTA2MUIzNTo2OTZCMjk4OSIsInZpc2l0b3JfaWQiOiI0OTg0NTkyNjc3MzE1NzUwMjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a8f4667817b6bdfeb09c50a03dba09146e35b3d8505e2634c5c6aafc245cbdfe |
| hovercard-subject-tag | issue:3039287190 |
| 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/276/issue_layout |
| twitter:image | https://opengraph.githubassets.com/890e99e0e4e5cc1169ab38fa0b0783feb5b2660a7e809cc4ff5e85b08d0848fd/mkdocstrings/python/issues/276 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/890e99e0e4e5cc1169ab38fa0b0783feb5b2660a7e809cc4ff5e85b08d0848fd/mkdocstrings/python/issues/276 |
| og:image:alt | Description of the bug It is similar/related to squidfunk/mkdocs-material#7734 which resulted in this fix The issue is that the text inside h5 headers (class names, function names) is converted to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mzebrak |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width