diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-08 19:33:18 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-03-08 19:33:18 -0400 |
commit | 1cf0979a831cdc7200e38de7b87f18149d6f51bb (patch) | |
tree | 88484d8f991a368309ce4945f9c13dd5c95f8e90 /src/util | |
parent | dca169fbf6c6bf09f3ad4e5bf3b153b7bd83f1f9 (diff) |
content, css, replacer: <img align="center"> in content
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/replacer.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js index f692b068..9779f84e 100644 --- a/src/util/replacer.js +++ b/src/util/replacer.js @@ -510,6 +510,7 @@ export function postprocessImages(inputNodes) { if (attributes.get('style')) imageNode.style = attributes.get('style'); if (attributes.get('width')) imageNode.width = parseInt(attributes.get('width')); if (attributes.get('height')) imageNode.height = parseInt(attributes.get('height')); + if (attributes.get('align')) imageNode.align = attributes.get('align'); if (attributes.get('pixelate')) imageNode.pixelate = true; if (attributes.get('warning')) { |