diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 0a17a763..78e2483f 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -303,7 +303,7 @@ export default class ExpensiMark { { name: 'reportMentions', - regex: /(?|<\/code>|<\/a>))/gimu, + regex: /(?<=^[*~_]?|[ \n][*~_]?)(#[\p{Ll}0-9-]{1,99})(?![^<]*(?:<\/pre>|<\/code>|<\/a>))/gimu, replacement: '$1', },