Title: Document nuance around `no-duplicate-header` rule · Issue #30 · github/markdownlint-github · GitHub
Open Graph Title: Document nuance around `no-duplicate-header` rule · Issue #30 · github/markdownlint-github
X Title: Document nuance around `no-duplicate-header` rule · Issue #30 · github/markdownlint-github
Description: This rule is set to true but I think there's some nuance around when this rule should be configured. The rationale behind the no-duplicate-header rule is that some markdown parsers will generate anchor links from headings, and if the hea...
Open Graph Description: This rule is set to true but I think there's some nuance around when this rule should be configured. The rationale behind the no-duplicate-header rule is that some markdown parsers will generate an...
X Description: This rule is set to true but I think there's some nuance around when this rule should be configured. The rationale behind the no-duplicate-header rule is that some markdown parsers will generat...
Opengraph URL: https://github.com/github/markdownlint-github/issues/30
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document nuance around `no-duplicate-header` rule","articleBody":"This rule is set to `true` but I think there's some nuance around when this rule should be configured.\r\n\r\nThe rationale behind the [no-duplicate-header rule](https://github.com/DavidAnson/markdownlint/blob/v0.26.2/doc/Rules.md#md024---multiple-headings-with-the-same-content) is that some markdown parsers will generate anchor links from headings, and if the heading is the same, two headings in separate areas of the page will share the same anchor link. We see this issue in Primer docs. \r\n\r\nHowever, on GitHub repos, the GitHub markdown parser ensures headings that share same text have unique IDs so the generated anchor links are unique even if the heading text is the same. \r\n\r\nSo I believe we wouldn't need to enforce that heading texts on a page are completely non-duplicated in other cases. I don't believe it's necessary to have _completely_ unique heading text on a page for accessibility purposes. However, I believe there are accessibility benefits from enforcing that sibling headings are unique. \r\n\r\nWe could recommend setting `siblings_only` parameter which allows heading duplication for non-sibling headings and enforces sibling headings are unique.\r\n\r\nCould we document these nuances?","author":{"url":"https://github.com/khiga8","@type":"Person","name":"khiga8"},"datePublished":"2022-12-29T16:46:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/30/markdownlint-github/issues/30"}
| 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:92b1a489-6892-5f80-b924-ae6cc4546e4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99DE:103824:200D92:299419:698E6395 |
| html-safe-nonce | 29159574b97ca3a19ffcf98cefe63fa02bf796f6ac65b4ec681663a0c42ef51d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OURFOjEwMzgyNDoyMDBEOTI6Mjk5NDE5OjY5OEU2Mzk1IiwidmlzaXRvcl9pZCI6IjIzMDUxOTc4ODk3MTY5MDQ4NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 459b2a26eac4a2afeb3668cfbbcd8dfe24248688ff4989b4c9c4737a38742a95 |
| hovercard-subject-tag | issue:1513893602 |
| 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/github/markdownlint-github/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fcbf6cb29947cae26e286d2acf8194d35ec93ece90b1296193d74ddf20c5594/github/markdownlint-github/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fcbf6cb29947cae26e286d2acf8194d35ec93ece90b1296193d74ddf20c5594/github/markdownlint-github/issues/30 |
| og:image:alt | This rule is set to true but I think there's some nuance around when this rule should be configured. The rationale behind the no-duplicate-header rule is that some markdown parsers will generate an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | khiga8 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 666e30cc1de8ebdf458084bf731e95deba4f074a5008f91b50803aa9a71e3725 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/markdownlint-github git https://github.com/github/markdownlint-github.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 518744654 |
| octolytics-dimension-repository_nwo | github/markdownlint-github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 518744654 |
| octolytics-dimension-repository_network_root_nwo | github/markdownlint-github |
| 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 | c5daa44975c44e187dd9ea0d761c37973489d508 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width