From bec76f748da960b72eee92701672b7666d424fa1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 29 Apr 2025 15:36:58 -0300 Subject: content, css: fix up audio/video align="center" --- src/replacer.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/replacer.js') 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; }); -- cgit 1.3.0-6-gf8a5