Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Oct 23, 2025

The GFM callout renderer would crash with internal_error() when rendering callouts that had a title but no body content, because it didn't handle the case where callout.content is nil.

This fix applies the same nil-safe pattern used by other format renderers (EPUB, RevealJS): default to empty Blocks when content is nil.

closes #13603

The GFM callout renderer would crash with internal_error() when
rendering callouts that had a title but no body content, because
it didn't handle the case where callout.content is nil.

This fix applies the same nil-safe pattern used by other format
renderers (EPUB, RevealJS): default to empty Blocks when content
is nil.
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Oct 23, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv cderv merged commit 8428298 into main Oct 24, 2025
51 checks passed
@cderv cderv deleted the fix/13603 branch October 24, 2025 09:10
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.

Callouts without text create fatal error when rendering to GFM

2 participants