Skip to content

Commit

Permalink
Merge pull request #1384 from ember-learn/link-directly
Browse files Browse the repository at this point in the history
make the deprecation anchor § link directly to the id route
  • Loading branch information
jaredgalanis authored Jun 6, 2024
2 parents dfd2c6d + 866bbc0 commit 1f633d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/templates/components/main-layout.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
{{#each result.contents as |content|}}
<DeprecationArticle @model={{content}}>
<h3 id="{{id-for-deprecation (or content.displayId content.id) content.anchor}}">
<a href="#{{id-for-deprecation (or content.displayId content.id) content.anchor}}" title={{content.title}} class="toc-anchor">
§
</a>
<LinkTo @route="id" @model={{content.id}} title={{content.title}} class="toc-anchor">§</LinkTo>
{{markdown-to-html
content.title
extensions="no-wrapper"
Expand Down

0 comments on commit 1f633d8

Please sign in to comment.