From 88a4bf056fa2d7fdcea07d8c778a4a4a1ee0b2ef Mon Sep 17 00:00:00 2001 From: Jerome Lelong Date: Sat, 23 Nov 2024 17:29:08 +0100 Subject: [PATCH] Associate extension in extraExts to latex langId This is required to enable the recipe mechanism --- src/core/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/file.ts b/src/core/file.ts index a8cfe79d9..e6931f366 100644 --- a/src/core/file.ts +++ b/src/core/file.ts @@ -276,7 +276,7 @@ function getOutDir(texPath?: string): string { */ function getLangId(filename: string): string | undefined { const ext = path.extname(filename).toLocaleLowerCase() - if (ext === '.tex') { + if (ext === '.tex' || extraTeXExts.includes(ext)) { return 'latex' } else if (lw.constant.PWEAVE_EXT.includes(ext)) { return 'pweave'