Reported during the link/rendering review in #19. These produce the only WARN lines in an otherwise clean hugo --gc --minify build.
Problem
With markup.goldmark.renderer.unsafe: false (set in hugo.yaml, and appropriate to keep for security), Goldmark silently drops content that looks like raw HTML. Two pages lose real content:
-
content/podcast/2013-08-14-episode-238-powerscripting-podcast-glenn-block-jim-christopher-on-scriptcs.md
The IRC chat log uses <nickname> angle brackets (e.g. <BellyTimber>, <MikeFRobbins>). Lines starting with these are parsed as raw HTML tags and stripped, so much of the transcript is missing from the rendered page.
-
content/articles/2011-05-18-configuring-rbac-for-mobileshell-in-powergui-pro-3-0.md
An embedded <?xml ?> block and HTML comments (<!-- -->) are dropped.
Suggested fix (per-page, not a global unsafe: true)
- For the IRC transcript: escape the angle brackets (
\<nick\> or </>), or wrap the chat log in a fenced code block so it renders verbatim.
- For the MobileShell article: escape the angle brackets in the
<?xml?> snippet, or fence it as a code block.
Keeping unsafe: false is preferred; fix the source content rather than enabling raw HTML site-wide.
To reproduce
hugo --gc --minify # emits "Raw HTML omitted while rendering ..." WARN for both files
Acceptance
- Both pages render their full content with
unsafe: false retained, and the build emits no raw-html warnings.
Reported during the link/rendering review in #19. These produce the only
WARNlines in an otherwise cleanhugo --gc --minifybuild.Problem
With
markup.goldmark.renderer.unsafe: false(set inhugo.yaml, and appropriate to keep for security), Goldmark silently drops content that looks like raw HTML. Two pages lose real content:content/podcast/2013-08-14-episode-238-powerscripting-podcast-glenn-block-jim-christopher-on-scriptcs.mdThe IRC chat log uses
<nickname>angle brackets (e.g.<BellyTimber>,<MikeFRobbins>). Lines starting with these are parsed as raw HTML tags and stripped, so much of the transcript is missing from the rendered page.content/articles/2011-05-18-configuring-rbac-for-mobileshell-in-powergui-pro-3-0.mdAn embedded
<?xml ?>block and HTML comments (<!-- -->) are dropped.Suggested fix (per-page, not a global
unsafe: true)\<nick\>or</>), or wrap the chat log in a fenced code block so it renders verbatim.<?xml?>snippet, or fence it as a code block.Keeping
unsafe: falseis preferred; fix the source content rather than enabling raw HTML site-wide.To reproduce
Acceptance
unsafe: falseretained, and the build emits noraw-htmlwarnings.