From 7277e9df17796e91e1e4000f5f4eec1d5483e5b6 Mon Sep 17 00:00:00 2001 From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com> Date: Tue, 29 Apr 2025 15:17:40 +0100 Subject: [PATCH] Headers: Fix duplicate oldframe header links --- exampleSite/content/test-product/everything.md | 7 ++++++- layouts/_default/_markup/render-heading.html | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/test-product/everything.md b/exampleSite/content/test-product/everything.md index fd2e9467..d07711fe 100644 --- a/exampleSite/content/test-product/everything.md +++ b/exampleSite/content/test-product/everything.md @@ -69,4 +69,9 @@ This won't render anything.
Learn how to pin NGINX Plus to a specific version And this is the content on how to do so. -
\ No newline at end of file + + +## [Heading with link](https://nginx.org/) + +This is some text, under a heading with a link. +There was a bug, where if a heading had a link in it, it would get duplicated in old frame. \ No newline at end of file diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 2a081212..4111b890 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -7,7 +7,9 @@ -
{{ .Text | safeHTML }} +
\ No newline at end of file