From 45b47444342cc2335cedbfd29222a1e49dbe071b Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sat, 28 Oct 2023 20:00:02 +0900 Subject: [PATCH] Prefer lang constructor option set through options field --- src/converter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converter.ts b/src/converter.ts index 95abf10d..02e8ee5c 100644 --- a/src/converter.ts +++ b/src/converter.ts @@ -478,7 +478,7 @@ export class Converter { mergeOptions: MarpitOptions ): Promise { const { html, lang, options } = this.options - const opts = { ...options, lang, ...mergeOptions, html } + const opts = { lang, ...options, ...mergeOptions, html } let engine = this.options.engine