Update lib/markdownlint.mjs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Rod 2025-09-17 03:47:03 -03:00 committed by GitHub
parent cf807dfb86
commit 7df5118894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ||