Skip to content

Commit

Permalink
Associate extension in extraExts to latex langId
Browse files Browse the repository at this point in the history
This is required to enable the recipe mechanism
  • Loading branch information
jlelong committed Nov 23, 2024
1 parent f2f7b56 commit 88a4bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 88a4bf0

Please sign in to comment.