Fix restricted shortcode rendering on unassociated machines page#25120
Merged
craig-osterhout merged 1 commit intoMay 20, 2026
Merged
Conversation
Switch from {{% %}} (markdown) to {{< >}} (HTML) delimiters for the
restricted shortcode. The markdown delimiter causes Hugo to process the
shortcode output through the markdown renderer, which escapes the HTML
tags and results in a visible </span> in the rendered page.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
docker-agent
left a comment
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
The change correctly fixes the Hugo shortcode delimiter issue. Switching from {{% restricted %}} to {{< restricted >}} prevents the markdown renderer from escaping the shortcode's HTML output (the <span> tags from the icon partial), which was causing a visible </span> tag to appear on the page. No content, front matter, links, or other documentation elements were modified. This is a clean, minimal, correct fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The restricted shortcode on the unassociated machines page renders with a visible
</span>tag due to using{{% %}}(markdown) delimiters instead of{{< >}}(HTML) delimiters.The
{{% %}}delimiter causes Hugo to process the shortcode's HTML output through the markdown renderer, which escapes the HTML tags from the icon partial.Fix
Switch from
{{% restricted %}}to{{< restricted >}}delimiters.This matches the pattern used by the similar
experimentalshortcode in other content files (e.g.,layouts/cli.html).Testing