Skip to content

Commit

Permalink
Do not expect ending tag for <br> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandokj authored Nov 19, 2024
1 parent 03762ec commit 79ecb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function parseTableRow(
let tableRow = source
.trim()
// isolate situations where a pipe should be ignored (inline code, HTML)
.split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/)
.split(/( *(?:`[^`]*`|<br\/?>|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/)
.reduce((nodes, fragment) => {
if (fragment.trim() === '|')
nodes.push(
Expand Down

0 comments on commit 79ecb2e

Please sign in to comment.