« get me outta code hell

content, css: transformContent: support align="center" inline - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-03 16:30:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-03 16:30:06 -0300
commitd519780f9863ad8fa0bd3057e308f07c112f0985 (patch)
tree73db0b6db9b94668a670c0ed3be27bdbafde09f1 /src/content/dependencies
parent10174e6b269c8479ebeb12b3e76a694327aafd73 (diff)
content, css: transformContent: support align="center" inline
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/transformContent.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 0904cde6..695f1be3 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -262,6 +262,10 @@ export default {
                   height && {height},
                   style && {style},
 
+                  align === 'center' &&
+                  !link &&
+                    {class: 'align-center'},
+
                   pixelate &&
                     {class: 'pixelate'});
 
@@ -271,6 +275,9 @@ export default {
                     {href: link},
                     {target: '_blank'},
 
+                    align === 'center' &&
+                      {class: 'align-center'},
+
                     {title:
                       language.$('misc.external.opensInNewTab', {
                         link: