We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44081dd commit fd015f1Copy full SHA for fd015f1
src/rules.ts
@@ -243,7 +243,7 @@ const br = /^( {2,}|\\)\n(?!\s*$)/;
243
const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
244
245
// list of unicode punctuation marks, plus any missing characters from CommonMark spec
246
-const _punctuation = '\\p{P}\\p{S}';
+const _punctuation = /\p{P}\p{S}/u;
247
const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
248
.replace(/punctuation/g, _punctuation).getRegex();
249
0 commit comments