« get me outta code hell

content: transformContent: always stringify {type: 'node'} data - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-09 18:37:03 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-09 18:37:03 -0300
commitd90d5dc841c1f910f78f7307dbb1295f04fe7ade (patch)
treeb6e1e02212ef6cf2b609c34f8b650798aeffded7
parenta44ebe6c0790ed5a1dc08bc27e4e8c59155e931a (diff)
content: transformContent: always stringify {type: 'node'} data
This lets custom tags show up in lyrics, which were assuming
access to node.data.includes().
-rw-r--r--src/content/dependencies/transformContent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index cc4e7a3a..588e5355 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -418,7 +418,7 @@ export default {
                 ? htmlFn(value, {html, language})
                 : value);
 
-            return {type: 'text', data: contents};
+            return {type: 'text', data: contents.toString()};
           }
 
           default: