From f10f5a187f26d08019e452e7fbd417b7f462faa4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 8 Jun 2026 12:08:36 -0300 Subject: content, data: Track: Contributor Text missing chronology link substitution --- src/content/dependencies/transformContent.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/content/dependencies/transformContent.js') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 243ab502..ad7530fe 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -302,7 +302,14 @@ export default { slots: { mode: { - validate: v => v.is('inline', 'multiline', 'lyrics', 'single-link'), + validate: v => v.is(...[ + 'inline', + 'multiline', + 'lyrics', + 'contributors', + 'single-link', + ]), + default: 'multiline', }, @@ -932,8 +939,10 @@ export default { // differently. Instead of having each line get its own paragraph, // "adjacent" lines are joined together (with blank lines separating // each verse/paragraph). + // + // Also this formatting goes for contributors mode too. - if (slots.mode === 'lyrics') { + if (slots.mode === 'lyrics' || slots.mode === 'contributors') { // If it looks like old data, using
instead of bunched together // lines... then oh god... just use transformMultiline. Perishes. if ( -- cgit 1.3.0-6-gf8a5