mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 22:47:55 -05:00
Add comment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user