From 750458d4b7a541c19ff6a8dfd2397abd6ad8b94d Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Wed, 26 Oct 2022 04:24:32 +0000 Subject: [PATCH] Reader: avoid overriding the `align` attribute --- reader.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reader.js b/reader.js index 32a5be8..3642c1c 100644 --- a/reader.js +++ b/reader.js @@ -90,6 +90,12 @@ const getCSS = ({ spacing, justify, hyphenate }) => ` hanging-punctuation: allow-end last; 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 { white-space: pre-wrap !important; }