mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-08 22:17:59 -05:00
Build: remove weird newlines before tables
This commit is contained in:
@@ -21,6 +21,12 @@ function cleanupHtml() {
|
||||
return CONTINUE;
|
||||
}
|
||||
|
||||
// Huge numbers of newlines weirdly get inserted before tables - no idea why
|
||||
if (node.type === 'text' && node.value.match(/^\n\n+$/) !== null) {
|
||||
node.value = '\n';
|
||||
return CONTINUE;
|
||||
}
|
||||
|
||||
// Remove all comments
|
||||
if (node.type === 'comment') {
|
||||
parent.children.splice(index, 1);
|
||||
|
||||
Reference in New Issue
Block a user