diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 0d870fd2..dd8c4684 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -346,7 +346,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', },