« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/upd8.js b/src/upd8.js
index a30b9b7..fad3c7d 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -212,6 +212,10 @@ const replacerSpec = {
     find: 'album',
     link: 'albumCommentary',
   },
+  'album-gallery': {
+    find: 'album',
+    link: 'albumGallery',
+  },
   artist: {
     find: 'artist',
     link: 'artist',
@@ -392,7 +396,11 @@ function joinLineBreaks(sourceLines) {
   return outLines;
 }
 
-function transformMultiline(text, {parseAttributes, transformInline}) {
+function transformMultiline(text, {
+  parseAttributes,
+  transformInline,
+  thumb = null,
+}) {
   // Heck yes, HTML magics.
 
   text = transformInline(text.trim());
@@ -442,7 +450,7 @@ function transformMultiline(text, {parseAttributes, transformInline}) {
       img({
         lazy: true,
         link: true,
-        thumb: 'medium',
+        thumb,
         ...parseAttributes(attributes),
       })
     );