« get me outta code hell

content, css, replacer: <img align="center"> in content - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
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
commit1cf0979a831cdc7200e38de7b87f18149d6f51bb (patch)
tree88484d8f991a368309ce4945f9c13dd5c95f8e90 /src/content
parentdca169fbf6c6bf09f3ad4e5bf3b153b7bd83f1f9 (diff)
content, css, replacer: <img align="center"> in content
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/transformContent.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 69030224..faae35aa 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -232,6 +232,7 @@ export default {
               warnings,
               width,
               height,
+              align,
               pixelate,
             } = node;
 
@@ -258,6 +259,9 @@ export default {
               inline: false,
               data:
                 html.tag('div', {class: 'content-image-container'},
+                  align === 'center' &&
+                    {class: 'align-center'},
+
                   image.slots({
                     src,