Allow options for header anchor links #823
                  
                    
                      JGallardo4
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 1 comment
-
| I'm open to a pull request that modifies the  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Current behavior when
header_linksis set to true is to add an empty anchor link withhrefset to the header's id and place this inside the header but before the other elements:## Section 2. Example with a `code span`Renders as:
It would be nice to have options avaiable for setting the anchor tag inside the header but after the other elements:
## Section 2. Example with a `code span`Renders as:
One could have the option to set the anchor tag as a wrapper over the header's contents. This is what Mozilla Developer Network's docs site does, and it's really nice. See an example article
## Section 2. Example with a `code span`Renders as:
Additionally, it would be good to be able to specify the content to be rendered inside the anchor tag (when not set as a wrapper):
## Section 2. Example with a `code span`Renders as:
Beta Was this translation helpful? Give feedback.
All reactions