Skip to content

Commit

Permalink
update docs from change in quarto-cli#7044
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Nov 30, 2023
1 parent 56c433d commit 270a580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/prerelease/1.4/crossref.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The changes to cross-references in Quarto 1.4 also introduce some changes to the
<div aria-describedby="fig-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="./img/content.jpg">
</div>
<figcaption id="fig-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca" class="figure quarto-float-caption quarto-float-fig">
<figcaption id="fig-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca" class="quarto-float-caption quarto-float-fig">
Figure&nbsp;1: This is a caption.
</figcaption>
</figure>
Expand All @@ -38,7 +38,7 @@ The changes to cross-references in Quarto 1.4 also introduce some changes to the
- All cross-referenceable elements use the `figure` HTML element with class `quarto-float`.
- Different float types are differentiated by the CSS class `quarto-float-fig` (or `-tbl`, `-lst`, or the `ref_type` of custom cross-reference types) as well as the additional CSS class `figure`, `table`, etc.
If the element is a subfloat, this will be `quarto-subfloat-fig`.
- Similarly, float captions use the `figcaption` element with class `quarto-float-caption` (or `quarto-subfloat-caption` if they're a subfloat), and are differentiated by the same additional CSS classes.
- Similarly, float captions use the `figcaption` element with class `quarto-float-caption` (or `quarto-subfloat-caption` if they're a subfloat), and also have the `quarto-float-*` CSS classes.

This setup lets all "floats" be uniformly targeted by a single CSS rule, as well as allowing specific float types and their captions be targeted by a single additional CSS selector.

Expand Down

0 comments on commit 270a580

Please sign in to comment.