Improve handling of BR tags

This commit is contained in:
mtkennerly 2022-05-04 04:25:17 +08:00
parent 9518fa6fce
commit b3c016fe47
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
3 changed files with 30 additions and 6 deletions

View file

@ -257,6 +257,9 @@ function getRawPathFromCell(cell: string | PathCell): [string, boolean] {
let regular = true;
if (typeof cell === "string") {
if (/<br\s*\/?>/.test(cell)) {
regular = false;
}
composite += cell;
} else if (cell.type === "transclusion") {
const [stringified, segmentRegular] = stringifyTransclusionCell(cell);