Skip to content

Fix GFM callout rendering crash with empty content (#13603)#13608

Merged
cderv merged 1 commit into
mainfrom
fix/13603
Oct 24, 2025
Merged

Fix GFM callout rendering crash with empty content (#13603)#13608
cderv merged 1 commit into
mainfrom
fix/13603

Conversation

@cderv

@cderv cderv commented Oct 23, 2025

Copy link
Copy Markdown
Member

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

posit-snyk-bot commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

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