How to add a word count / expected reading time on each page? #4999
-
Hello~😃 I'm wondering if a "word count" pattern( which can count how many words(characters) the current page has) and the approximate "Expected Reading Time" can be added to each page, either under the title or at the bottom of the page, just like the following pic shows. I don't know for sure whether the total words and characters can be counted in markdown file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It could easily be counted in HTML, I think that would be easiest. You could target and filter tags you do and don't want to count words in. It would make sense as a MkDocs plugin that maybe post-processes the content using certain configurable filters. |
Beta Was this translation helpful? Give feedback.
It could easily be counted in HTML, I think that would be easiest. You could target and filter tags you do and don't want to count words in. It would make sense as a MkDocs plugin that maybe post-processes the content using certain configurable filters.