diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 74e76dcd6..ba7307334 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -546,7 +546,7 @@ export default class ExpensiMark { }, { name: 'bold', - regex: /<(b|strong|span)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi, + regex: /<(b|strong)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi, replacement: (extras, match, tagName, innerContent) => { // To check if style attribute contains bold font-weight const isBoldFromStyle = (style: string | null) => {