diff --git a/lib/markdownlint.mjs b/lib/markdownlint.mjs index 73194b20..76806ffb 100644 --- a/lib/markdownlint.mjs +++ b/lib/markdownlint.mjs @@ -825,6 +825,7 @@ function lintInput(options, synchronous, callback) { const handleRuleFailures = !!options.handleRuleFailures; const noInlineConfig = !!options.noInlineConfig; // eslint-disable-next-line dot-notation + // Bracket notation is intentionally used here to access 'resultVersion' in case it is a deprecated or reserved property, and to avoid potential issues with dot notation. const resultVersion = (options["resultVersion"] === undefined) ? 3 : options["resultVersion"]; const markdownItFactory = options.markdownItFactory ||