Style fixes and cleanup for appendix

This commit is contained in:
Ludwig Schubert
2017-10-11 18:31:49 -07:00
parent 7f0fb66ec5
commit 017bb45b7c
11 changed files with 86 additions and 100 deletions
+3 -3
View File
@@ -14,9 +14,9 @@ export class Article extends HTMLElement {
for (const mutation of mutations) {
for (const addedNode of mutation.addedNodes) {
switch (addedNode.nodeName) {
case 'HR':
console.warn('Use of <hr> tags in distill articles is discouraged as they interfere with layout! To separate sections, please just use h2 or h3 tags.');
break;
// case 'HR':
// console.warn('Use of <hr> tags in distill articles is discouraged as they interfere with layout! To separate sections, please just use h2 or h3 tags.');
// break;
case '#text': { // usually text nodes are only linebreaks.
const text = addedNode.nodeValue;
if (!isOnlyWhitespace.test(text)) {