Skip to content

Commit cc7bd24

Browse files
authored
Merge pull request #9720 from quarto-dev/bugfix/9694
Typst - fix default callouts
2 parents b0517b0 + 8cedaa3 commit cc7bd24

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

news/changelog-1.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ All changes included in 1.5:
7272
- ([#9619](https://github.com/quarto-dev/quarto-cli/pull/9619)): Typst CSS - for a small set of elements and properties, Quarto will translate the CSS property to a Typst property. This is especially useful for processed HTML tables and `<pre>`s.
7373
- ([#8539](https://github.com/quarto-dev/quarto-cli/issues/8539)): Support for Typst theorems and their ilk via [typst-theorems](https://github.com/sahasatvik/typst-theorems).
7474
- ([#9293](https://github.com/quarto-dev/quarto-cli/pull/9293)): Add `toc-indent` to control indentation of entries in the table of contents.
75+
- ([#9694](https://github.com/quarto-dev/quarto-cli/issues/9694)): Fix default callout (`::: callout ... ::: `) in Typst.
7576
- Upgrade Typst to 0.11
7677
- Upgrade the Typst template to draw tables without grid lines by default, in accordance with latest Pandoc.
7778

src/resources/filters/modules/callouts.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ local callout_attrs = {
137137

138138
__other = {
139139
color = constants.kColorUnknown,
140-
background_color = constants.kColorUnknown,
140+
background_color = constants.kBackgroundColorUnknown,
141141
latex_color = "quarto-callout-color",
142142
latex_frame_color = "quarto-callout-color-frame",
143-
fa_icon = nil,
144-
fa_icon_typst = nil
143+
fa_icon = "faInfo",
144+
fa_icon_typst = "fa-info"
145145
}
146146
}
147147

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
format: typst
3+
---
4+
5+
::: callout
6+
7+
## Hello
8+
9+
Content
10+
11+
:::

0 commit comments

Comments
 (0)