avr / obsidian-reading-time

MIT License
66 stars 4 forks source link

Exclude front matter from reading time calculation #8

Open redactedscribe opened 1 year ago

redactedscribe commented 1 year ago

The current reading time value increases the longer one's front matter is. Front matter should be excluded from how the plugin calculates the word count.

Thanks.

avr commented 1 year ago

Thanks - good suggestion. I'll try to take a look. (This may be similar to #6 - which I haven't explored).)

redactedscribe commented 1 year ago

Yes, embeds should probably be added towards the word count of the document by default, however I think it would be convenient to be able to see the reading time both with and without embeds included, and for the entire document (which is the currently displayed value pre any fix).

For example: