mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 22:47:55 -05:00
Build: remove weird newlines before tables
This commit is contained in:
@@ -21,6 +21,12 @@ function cleanupHtml() {
|
|||||||
return CONTINUE;
|
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
|
// Remove all comments
|
||||||
if (node.type === 'comment') {
|
if (node.type === 'comment') {
|
||||||
parent.children.splice(index, 1);
|
parent.children.splice(index, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user