Skip to content

Fix ipynb rendering an empty title header when no title is set - #14697

Merged
cderv merged 2 commits into
mainfrom
fix/issue-14693
Jul 15, 2026
Merged

Fix ipynb rendering an empty title header when no title is set#14697
cderv merged 2 commits into
mainfrom
fix/issue-14693

Conversation

@cderv

@cderv cderv commented Jul 15, 2026

Copy link
Copy Markdown
Member

Rendering a document with no title metadata to ipynb emits an empty level-1 heading (# ) as the first line of the notebook's first markdown cell.

title-block.md unconditionally emits # $title$ regardless of whether a title is set. Every other title template (html, pdf/beamer, typst, asciidoc) already guards this with $if(title)$; ipynb was missing it since the template was added in 2022.

Fixes #14693

title-block.md unconditionally emitted a level-1 markdown header for
every ipynb render, even without a title, producing a stray "# " line
in the notebook's first cell. Every other title template in the
codebase (html, pdf/beamer, typst, asciidoc) already guards this with
$if(title)$; ipynb was missing it since the template was first added.
@posit-snyk-bot

posit-snyk-bot commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

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

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

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

Snapshot predates removal of the empty "# " title header in ipynb output.
@cderv
cderv merged commit 2e66958 into main Jul 15, 2026
51 checks passed
@cderv
cderv deleted the fix/issue-14693 branch July 15, 2026 14:52
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.

quarto render --to=ipynb always assumes there is a title

2 participants