Skip to content

Commit fad79a0

Browse files
authored
Merge pull request #1298 from quarto-dev/heading-pdf-book
Correctly support multiple classes on title
2 parents b1c68db + 16c5496 commit fad79a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/project/types/book/book-render.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@ async function mergeExecutedFiles(
361361
const idStr = attr.id !== "" ? `#${attr.id} ` : "";
362362
const clzStr = attr.classes.map((clz) => {
363363
return `.${clz} `;
364-
});
364+
}).join("");
365365
const keyValueStr = attr.keyvalue.map((kv) => {
366366
const escapedValue = kv[1].replaceAll(/"/gm, '\\"');
367367
return `${kv[0]}="${escapedValue}" `;
368-
});
368+
}).join("");
369369
const attrContents = `${idStr}${clzStr}${keyValueStr}`.trim();
370370
attrStr = `{${attrContents}}`;
371371
}

0 commit comments

Comments
 (0)