Request: Allow Controlling Clickability of Headings in README Files #68054
Unanswered
danielbrodi
asked this question in
Profile
Replies: 3 comments 8 replies
-
As a workaround, I have resorted to inserting a zero-width character with a hyperlink in the beginning of any headings:
The same applies to Markdown:
In both cases, the heading is displayed as pure text. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
I've noticed that headings in README files on GitHub are automatically generating clickable links to anchor points within the README. While this feature can be useful in some cases, it can also lead to unintended behavior when the intention is to have non-clickable headings.
Issue:
Automatic Clickability: Currently, all headings in README files, whether written as
<h1>
,<h2>
, or using Markdown's#
, are automatically generating clickable links. This behavior seems to have changed recently, and it results in headings behaving like links by default.For example:
### Technologies
will automatically create an anchor point to:https://github.com/daniel#technologies
.Intention for Non-Clickable Headings: In some cases, README authors may prefer to have headings that are not clickable, especially when the intention is not to link to sections within the README. This behavior may be more in line with the intended use of headings for organizational purposes.
Request:
I would like to request an enhancement to GitHub's Markdown rendering behavior to allow authors more control over the clickability of headings in README files:
Optional Clickability: Provide an option or syntax that allows authors to specify whether a heading should be clickable or not. For example, using an attribute or flag in the Markdown syntax.
Consistency: Ensure that the default behavior remains consistent with the intended use of headings for organization and structure, which is typically non-clickable.
Examples of possible solution:
[clickable=false]### Technologies
Beta Was this translation helpful? Give feedback.
All reactions