Skip to content

fix: prevent raw HTML code blocks on homepage from CommonMark indentation rule#17

Merged
adurrr merged 1 commit into
mainfrom
fix-homepage-html
May 31, 2026
Merged

fix: prevent raw HTML code blocks on homepage from CommonMark indentation rule#17
adurrr merged 1 commit into
mainfrom
fix-homepage-html

Conversation

@adurrr

@adurrr adurrr commented May 31, 2026

Copy link
Copy Markdown
Owner

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

  • 80/80 JS unit tests pass
  • 21/21 E2E tests pass
  • Zero <pre><code> blocks on homepage

… 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.
@adurrr adurrr merged commit e23ee12 into main May 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant