Skip to content

Commit 23e8b99

Browse files
typst logo: replace backslashes with double backslashes on windows
1 parent 0002e51 commit 23e8b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/filters/quarto-post/typst-brand-yaml.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function render_typst_brand_yaml()
102102
local declImage = {}
103103
for name, image in pairs(logo.images) do
104104
declImage[name] = {
105-
path = quote_string(image.path),
105+
path = quote_string(image.path):gsub('\\', '\\\\'),
106106
alt = quote_string(image.alt),
107107
}
108108
end
@@ -114,7 +114,7 @@ function render_typst_brand_yaml()
114114
for _, size in pairs({'small', 'medium', 'large'}) do
115115
if logo[size] then
116116
declLogo[size] = {
117-
path = quote_string(logo[size].path),
117+
path = quote_string(logo[size].path):gsub('\\', '\\\\'),
118118
alt = quote_string(logo[size].alt),
119119
}
120120
end

0 commit comments

Comments
 (0)