fix(content): restore content dropped as raw HTML (Goldmark unsafe:false)#30
Merged
Merged
Conversation
…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>
✅ Deploy Preview for powershellorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
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 onlyWARNlines in an otherwise cleanhugo --gc --minifybuild.Fix (per-page,
unsafe: falseretained)<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.<?xml?>declaration and<!-- -->comment outside any code context. Rebuilt it as a fencedpowershellblock so it renders verbatim.Verification
hugo --gc --minifyemits noraw-htmlwarnings (remaining WARNs are pre-existing config deprecations).<?xml?>/<!-- -->/script render in the article.🤖 Generated with Claude Code