We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f4b73 commit c14b1cdCopy full SHA for c14b1cd
src/command/render/pandoc.ts
@@ -1230,9 +1230,9 @@ export async function runPandoc(
1230
!isBeamerOutput(options.format.pandoc)
1231
) {
1232
const docClass = pandocMetadata[kDocumentClass];
1233
- assert(typeof docClass === "string");
+ assert(!docClass || typeof docClass === "string");
1234
const isPrintDocumentClass = docClass &&
1235
- ["book", "scrbook"].includes(docClass);
+ ["book", "scrbook"].includes(docClass as string);
1236
1237
if (!isPrintDocumentClass) {
1238
if (pandocMetadata[kColorLinks] === undefined) {
0 commit comments