Allow typewriter quotes in inline code blocks

This commit is contained in:
Gymnasiast
2026-04-22 12:25:56 +02:00
parent 0fb31d3582
commit a166e10e4a
+2 -1
View File
@@ -127,7 +127,8 @@ function readVersionEntry(ctx, rawEntry, versionInfo) {
}
}
if (text.includes('"') || text.includes('\'')) {
const textWithoutCode = text.replaceAll(/`.*`/g, '');
if (textWithoutCode.includes('"') || textWithoutCode.includes('\'')) {
reportLineError(rawEntry, `Use of typewriter quotes (' or "), please use typographical quotes ( and “ ”)`);
}