diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-29 15:36:58 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-29 15:37:29 -0300 |
commit | bec76f748da960b72eee92701672b7666d424fa1 (patch) | |
tree | c0f8ee923e2efe5ba30cafa5977ee39bde6f5000 /src/replacer.js | |
parent | e36872408600c1a4c568ff9be9d84713d2561408 (diff) |
content, css: fix up audio/video align="center" preview
Diffstat (limited to 'src/replacer.js')
-rw-r--r-- | src/replacer.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/replacer.js b/src/replacer.js index b7da7643..d285a7ea 100644 --- a/src/replacer.js +++ b/src/replacer.js @@ -654,6 +654,7 @@ export function postprocessVideos(inputNodes) { if (attributes.get('width')) node.width = parseInt(attributes.get('width')); if (attributes.get('height')) node.height = parseInt(attributes.get('height')); + if (attributes.get('align')) node.align = attributes.get('align'); if (attributes.get('pixelate')) node.pixelate = true; return node; @@ -667,6 +668,7 @@ export function postprocessAudios(inputNodes) { node.src = attributes.get('src'); node.inline = attributes.get('inline') ?? inline; + if (attributes.get('align')) node.align = attributes.get('align'); return node; }); |