New title canonicalization for h1 is breaking custom rendering (using custom template and no boostrap) #11596
Labels
bug
Something isn't working
html
Issues with HTML and related web technology (html/css/scss)
needs-discussion
Issues that require a team-wide discussion before proceeding further
regression
Functionality that used to work but now is broken.
New title canonicalization from
is a bit to eager for custom rendering lik pkgdown is doing. This has been found while investigating
This example recreates what pkgdown is doing
Take this custom template
template.html
It does not use any of quarto partial and fully custom. pkgdown use something like this by taking the
$title$
to put it in a specific div it can retrieve fromNow use it a simple .qmd document like this
The output will be the following after
quarto render
Previous with Quarto 1.5
New addition from #11224 is applying here because all the checks are triggered
quarto-cli/src/format/html/format-html-title.ts
Lines 195 to 241 in 39baf40
#11224 was supposed to solve #10567 which seemed to be quite specific to breadcrumbs. So maybe the post processing applies to eagerly here.
I see that this processing checks that
.quarto-title-block
exists and add it otherwise. I believe class is not always added in HTML document.It is from this specific partial (and others) added only for bootstrap output
quarto-cli/src/format/html/format-html-title.ts
Line 19 in 39baf40
I mean when
minimal: true
ortheme: pandoc
ortheme: none
, I don't think there will be this class however the processing will add it.There are many variation of
title block
also and this checkquarto-cli/src/format/html/format-html-title.ts
Line 198 in 39baf40
The text was updated successfully, but these errors were encountered: