Add comment

This commit is contained in:
Ben Edgington
2025-05-25 19:58:11 +01:00
parent dede12f65a
commit f97d500629

View File

@@ -30,6 +30,7 @@ function getText(node, exclude) {
return '';
}
// Add some minimal formatting for tables
let separator = '';
if (node.type === 'element') {
if (node.tagName === 'tr') {
@@ -38,6 +39,7 @@ function getText(node, exclude) {
separator = '<br>';
}
}
return node.children
.map((node) => {
return getText(node, exclude);