Skip to content

Commit 45b4744

Browse files
committed
Prefer lang constructor option set through options field
1 parent 984fd15 commit 45b4744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/converter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ export class Converter {
478478
mergeOptions: MarpitOptions
479479
): Promise<Marpit & { [engineInfo]?: EngineInfo }> {
480480
const { html, lang, options } = this.options
481-
const opts = { ...options, lang, ...mergeOptions, html }
481+
const opts = { lang, ...options, ...mergeOptions, html }
482482

483483
let engine = this.options.engine
484484

0 commit comments

Comments
 (0)