We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e234d3 commit 4f9b2b0Copy full SHA for 4f9b2b0
packages/site-kit/src/lib/markdown/utils.ts
@@ -94,8 +94,8 @@ export function smart_quotes(
94
}
95
} else if (!html && (char === '"' || char === "'")) {
96
let left: boolean =
97
- (first && stack.at(-1) !== char) ||
98
- (index > 1 && before === '=' && !(char === "'" && opening_squo_chars.test(before)));
+ ((first && stack.at(-1) !== char) || (index > 1 && before === '=')) &&
+ !(char === "'" && !opening_squo_chars.test(before));
99
let double = char === '"';
100
res += double ? (left ? '“' : '”') : left ? '‘' : '’';
101
if (!left) {
0 commit comments