Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Vale rules to ignore links #753

Merged
merged 9 commits into from
Dec 27, 2024
3 changes: 2 additions & 1 deletion tools/src/prepare-for-vale/KeepDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default class KeepDescriptions {
} else if (inside_text && line.match(/^[\s]*[\w\\$]*:/)) {
inside_text = false
} else if (inside_text) {
fs.writeSync(writer, this.prune_vars(line))
const cleaned_line = line.replace(/\[([^\]]+)\]\([^)]+\)/g, '$1')
fs.writeSync(writer, this.prune_vars(cleaned_line))
}
if (line.length > 0) {
fs.writeSync(writer, "\n")
Expand Down
Loading