Skip to content

Commit f0b3715

Browse files
fix upgrade of string family to typography object in brand.lua
i don't understand how this hasn't triggered all week since a97fcc0
1 parent 12ede06 commit f0b3715

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/resources/filters/modules/brand/brand.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ local function get_typography(fontName)
3838
local typography = brand.typography and brand.typography[fontName]
3939
if not typography then return nil end
4040
local typsted = {}
41+
if type(typography) == 'string' then typography = {family = typography} end
4142
for k, v in pairs(typography) do
4243
if k == 'color' or k == 'background-color' then
4344
typsted[k] = get_color(v) or _quarto.format.typst.css.output_color(_quarto.format.typst.css.parse_color(v))

0 commit comments

Comments
 (0)