Skip to content

Commit edb036c

Browse files
committed
Headers: Fix duplicate oldframe header links
1 parent eff8a1d commit edb036c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

exampleSite/content/test-product/everything.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,9 @@ This won't render anything.
6969
<details open>
7070
<summary>Learn how to pin NGINX Plus to a specific version</summary>
7171
And this is the content on how to do so.
72-
</details>
72+
</details>
73+
74+
## [Heading with link](https://nginx.org/)
75+
76+
This is some text, under a heading with a link.
77+
There was a bug, where if a heading had a link in it, it would get duplicated in old frame.

layouts/_default/_markup/render-heading.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
</a>
88
</div>
99

10-
<a class="headerlink float-right" data-mf="true" style="display: none;" href="#{{ .Anchor | safeURL }}" title="{{ .Text | safeHTML }}">
10+
<div data-mf="true">
11+
<a class="headerlink float-right" href="#{{ .Anchor | safeURL }}" title="{{ .Text | safeHTML }}">
1112
{{ .Text | safeHTML }}
1213
</a>
14+
</div>
1315
</h{{ .Level }}>

0 commit comments

Comments
 (0)