Reader: avoid overriding the align attribute

This commit is contained in:
John Factotum
2022-10-26 04:24:32 +00:00
committed by GitHub
parent f2f41e6013
commit 750458d4b7
+6
View File
@@ -90,6 +90,12 @@ const getCSS = ({ spacing, justify, hyphenate }) => `
hanging-punctuation: allow-end last; hanging-punctuation: allow-end last;
widows: 2; widows: 2;
} }
/* prevent the above from overriding the align attribute */
[align="left"] { text-align: left; }
[align="right"] { text-align: right; }
[align="center"] { text-align: center; }
[align="justify"] { text-align: justify; }
pre { pre {
white-space: pre-wrap !important; white-space: pre-wrap !important;
} }