Skip to content

Commit

Permalink
Update ExpensiMark.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel committed Jun 26, 2024
1 parent f11af6e commit eb40af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit eb40af6

Please sign in to comment.