Skip to content

fix(content): restore content dropped as raw HTML (Goldmark unsafe:false)#30

Merged
HeyItsGilbert merged 1 commit into
mainfrom
fix/goldmark-raw-html-dropped
Jun 21, 2026
Merged

fix(content): restore content dropped as raw HTML (Goldmark unsafe:false)#30
HeyItsGilbert merged 1 commit into
mainfrom
fix/goldmark-raw-html-dropped

Conversation

@HeyItsGilbert

Copy link
Copy Markdown
Member

Closes #23

Problem

With markup.goldmark.renderer.unsafe: false (kept for security), Goldmark silently drops content that looks like raw HTML. Two pages lost real content and were the only WARN lines in an otherwise clean hugo --gc --minify build.

Fix (per-page, unsafe: false retained)

  • Podcast 238 IRC log — lines starting with <nick> (e.g. <BellyTimber>, <MikeFRobbins>) were parsed as HTML tags and stripped. Escaped the angle brackets (\<nick\>) so the nicknames render, while leaving the <http://…> autolinks clickable.
  • MobileShell RBAC article — a botched WordPress conversion had left the setup script as an inline code span exploded across blank lines, pushing the <?xml?> declaration and <!-- --> comment outside any code context. Rebuilt it as a fenced powershell block so it renders verbatim.

Verification

  • hugo --gc --minify emits no raw-html warnings (remaining WARNs are pre-existing config deprecations).
  • Both pages now render their full content: all 34 IRC nicknames appear with autolinks intact, and the <?xml?>/<!-- -->/script render in the article.

🤖 Generated with Claude Code

…fe:false

Two pages lost real content because `markup.goldmark.renderer.unsafe` is
false (kept for security) and Goldmark silently drops anything that looks
like raw HTML:

- Podcast 238 IRC log: leading `<nick>` lines parsed as HTML tags and
  stripped. Escaped the angle brackets (`\<nick\>`) so the names render
  while the `<http://...>` autolinks stay clickable.
- MobileShell RBAC article: a botched WordPress conversion left the setup
  script as an inline code span exploded across blank lines, pushing the
  `<?xml?>` block and `<!-- -->` comment outside any code context. Rebuilt
  it as a fenced `powershell` block so it renders verbatim.

`hugo --gc --minify` now emits no raw-html warnings and both pages render
their full content with unsafe:false retained.

Closes #23

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 21, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit 58e8811
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a3774254f6834000985296b
😎 Deploy Preview https://deploy-preview-30--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@HeyItsGilbert HeyItsGilbert merged commit 9579b27 into main Jun 21, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the fix/goldmark-raw-html-dropped branch June 21, 2026 05:20
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.

Content dropped as "raw HTML omitted" on two pages (Goldmark unsafe: false)

1 participant