Skip to content

Commit

Permalink
fix(xml): allow nested tags in <title>
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Jan 7, 2025
1 parent 0237007 commit eefff82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metanorma-xml-store/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const mod: StoreAdapterModule = {
}

const parts = Array.from(el.childNodes).
filter(n => n.nodeType === 3).
//filter(n => n.nodeType === 3). // can’t only select text nodes, titles allow complex content
map(n => n.textContent ?? '').
filter(content => content !== '' && content !== clauseNumber);

Expand Down

0 comments on commit eefff82

Please sign in to comment.