Skip to content

Commit

Permalink
Prefer lang constructor option set through options field
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Oct 28, 2023
1 parent 984fd15 commit 45b4744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class Converter {
mergeOptions: MarpitOptions
): Promise<Marpit & { [engineInfo]?: EngineInfo }> {
const { html, lang, options } = this.options
const opts = { ...options, lang, ...mergeOptions, html }
const opts = { lang, ...options, ...mergeOptions, html }

let engine = this.options.engine

Expand Down

0 comments on commit 45b4744

Please sign in to comment.