Skip to content

Commit

Permalink
feat: prevent reportMention from appearing in codeFence
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed May 29, 2024
1 parent caeb723 commit b78e80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default class ExpensiMark {
{
name: 'reportMentions',

regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,80})/gmiu,
regex: /(?<![^ \n*~_])(#[\p{Ll}0-9-]{1,80})(?![^<]*(?:<\/pre>|<\/code>))/gmiu,
replacement: '<mention-report>$1</mention-report>',
},

Expand Down

0 comments on commit b78e80a

Please sign in to comment.