diff --git a/modules/web/src/components/ChapterContent.vue b/modules/web/src/components/ChapterContent.vue index 0cc720106..04ff1697a 100644 --- a/modules/web/src/components/ChapterContent.vue +++ b/modules/web/src/components/ChapterContent.vue @@ -3,7 +3,7 @@
{ const imagePlaceHolder = " "; return paragraph.replaceAll(imgPattern, imagePlaceHolder).length; }; +const wordCounts = computed(() => { + return Array.from(props.contents, content => calculateWordCount(content)); +}); +