You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the words-sum shortcode, the number of counted words is slightly off. This is currently mentioned in template.qmd:
An example in this extension is {{{< words-sum ARG >}}}, where ARG is formatted as "ref-note" or "body-append", etc., to count specific sections together. Since words-sum has two words to construct the shortcode but only one word is returned, the region that uses this shortcode is inflated by one.
For instance, with this minimal document:
---title: "Counts not aligned"subtitle: "{{< words-sum body >}} words"format: wordcount-html---
This sentence has seven words in it.
… the shortcode says that there are 6 words:
…while the terminal output reports 7 words:
Overall totals:
----------------------------
- 7 total words
- 7 words in body and notes
Section totals:
----------------------------
- 7 words in text body
It would be nice to adjust the count after using {{< words-sum ARG >}} so that the shortcode output matches the actual count, maybe by counting all the distinct ARGs and adjusting the count accordingly?
The text was updated successfully, but these errors were encountered:
When using the
words-sum
shortcode, the number of counted words is slightly off. This is currently mentioned intemplate.qmd
:For instance, with this minimal document:
… the shortcode says that there are 6 words:
…while the terminal output reports 7 words:
It would be nice to adjust the count after using
{{< words-sum ARG >}}
so that the shortcode output matches the actual count, maybe by counting all the distinct ARGs and adjusting the count accordingly?The text was updated successfully, but these errors were encountered: