fix: prevent raw HTML code blocks on homepage from CommonMark indentation rule#17
Merged
Conversation
… between program cards Root cause: Hugo's Goldmark parser (CommonMark) treats 4-space-indented content after a blank line as a code block. The program grid had blank lines between the 4 program-card anchor tags — after the first card ended the HTML block, the next 4-space-indented cards were rendered as escaped HTML inside visible <pre><code> blocks. Fix: remove the 3 blank lines between adjacent program-card tags so the raw HTML block remains continuous through the entire grid. All 4 program cards now render as proper HTML.
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.
Problem
The Wavecast Radio homepage shows escaped HTML code for three of the four program cards in the "Our Programs" section. Only the first card renders properly as HTML.
Root Cause
Hugo's Goldmark parser (CommonMark) treats content indented by 4+ spaces after a blank line as a code block. The program grid had blank lines between the 4 program-card anchor tags. After the first card ended the raw HTML block, the remaining 4-space-indented cards were rendered as escaped HTML inside visible
<pre><code>blocks.Fix
Removed the 3 blank lines between adjacent
<a>tags in the program grid. This keeps the raw HTML block continuous through the entire grid, so all 4 cards render as proper HTML.Tests
<pre><code>blocks on homepage