Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/changelog-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ All changes included in 1.9:

- ([#13362](https://github.com/quarto-dev/quarto-cli/issues/13362)): Remove unused `blockquote` definitions from template.
- ([#13452](https://github.com/quarto-dev/quarto-cli/issues/13452)): Wraps subfigure captions generated by `quarto_super()` in `block` function to avoid emitting `par` elements. (author: @christopherkenny)
- ([#13474](https://github.com/quarto-dev/quarto-cli/issues/13474)): Heading font for title should default to `mainfont`.

## `publish`

Expand Down
2 changes: 2 additions & 0 deletions src/resources/formats/typst/pandoc/quarto/typst-show.typ
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ $endif$
$if(title)$
$if(brand.typography.headings.family)$
heading-family: $brand.typography.headings.family$,
$elseif(mainfont)$
heading-family: ("$mainfont$",),
$endif$
$if(brand.typography.headings.weight)$
heading-weight: $brand.typography.headings.weight$,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Header logic"
format:
typst:
keep-typ: true
brand:
typography:
base:
family: Comic Sans MS
_quarto:
tests:
typst:
ensureTypstFileRegexMatches:
-
- 'heading-family: \("Comic Sans MS",\)'
---

Some text.

# Header logic so we have the same letters

More text.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "Header logic"
format:
typst:
keep-typ: true
mainfont: Comic Sans MS
_quarto:
tests:
typst:
ensureTypstFileRegexMatches:
-
- 'heading-family: \("Comic Sans MS",\)'
---

Some text.

# Header logic so we have the same letters

More text.
Loading