Apply one chosen suggestion to the linking file.
Rewrites the markdown link form ](broken-href to ](replacement on the recorded line. A missing line or a link text that no longer matches throws -- applying a fix to a file that changed under the validator would silently corrupt the wrong span.
The planned fix being accepted
Zero-based index into fix.suggestions
const [fix] = planLinkFixes(result, knownFiles);if (fix) { await applyLinkFix(fix, 0);} Copy
const [fix] = planLinkFixes(result, knownFiles);if (fix) { await applyLinkFix(fix, 0);}
Apply one chosen suggestion to the linking file.
Rewrites the markdown link form ](broken-href to ](replacement on the recorded line. A missing line or a link text that no longer matches throws -- applying a fix to a file that changed under the validator would silently corrupt the wrong span.