Is there an easy way to get a word count? #4616
Answered
by
brc-dd
jeremy-rifkin
asked this question in
Q&A
-
Hi, I'm using vitepress for a blog and I'd like to show a word count and estimated time to read. Is there an easy way to get the word count from a markdown page with vitepress? Cheers |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
Mar 10, 2025
Replies: 1 comment 5 replies
-
Maybe something like this: 👀 https://stackblitz.com/edit/vite-f2qsfsp4?file=docs/.vitepress/theme/WordCount.vue There is this plugin too - https://github.com/nolebase/integrations/tree/main/packages/vitepress-plugin-page-properties But the docs aren't completed yet. You might be able to refer their docs implementation instead. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
jeremy-rifkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe something like this: 👀
https://stackblitz.com/edit/vite-f2qsfsp4?file=docs/.vitepress/theme/WordCount.vue
There is this plugin too - https://github.com/nolebase/integrations/tree/main/packages/vitepress-plugin-page-properties
But the docs aren't completed yet. You might be able to refer their docs implementation instead.