diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-06-08 12:08:36 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-06-08 12:08:48 -0300 |
| commit | f10f5a187f26d08019e452e7fbd417b7f462faa4 (patch) | |
| tree | a721a9413b90b7c2dbd22d76b0ab212ed9219c7f /src/content/dependencies/transformContent.js | |
| parent | 6b858c651b55dc45ee5710c90389eb4b97069d54 (diff) | |
content, data: Track: Contributor Text preview
missing chronology link substitution
Diffstat (limited to 'src/content/dependencies/transformContent.js')
| -rw-r--r-- | src/content/dependencies/transformContent.js | 13 |
1 files changed, 11 insertions, 2 deletions
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 <br> instead of bunched together // lines... then oh god... just use transformMultiline. Perishes. if ( |