Word count based on preview/rendered text, not editor text

Current behavior: Document with single line of [[test link|test]] gives a word count of 3.
Desired behavior: Word count should be 1, using only the link text, not the hidden info for the link.


A bigger difference comes when I have comments written using β€œ%% β€”%%” throughout the document are included in the word count. This gives a feeling of a bloated note when in preview the note looks much smaller for that word count.


Same issue, but as I refactor notes, the word count drops. That is fine, but for transcluded text I need to have that counted as well. Preview word count seems the right answer.

I was just about to request this myself, specifically with the ability to exclude comments from the word count.

Character/word count includes the contents of Front Matter and characters inside markdown links or wiki links, formatting characters, multiple end of lines or whitespace that is stripped from the resulting formatted text.

It is a problem because for all purposes I can imagine, I need the char/word count of the resulting formatted text, not of its source. Could you please add an option to only count chars/words of the formatted (previewed) text without Front Matter? Thanks in advance.


Yes, I’d really like to second this request. Word cout may seem like a minor feature, but it’s extremely useful to us writers who are trying to track and measure our progress.

It really needs to work correctly.


at least frontmatter chars should excluded.
or run the coutner in the editing/preview context.

1 Like

+1. Being able to exclude frontmatter and comments would make a big difference when using eg Longform plugin for writing.

+1, especially with links! [obsidian](https://obsidian.md/) should count as one word, it currently counts as 4.

1 Like

+1, this would help a lot in my research notes where the word count gets bloated very quickly with links!

+1 especially with links this gets messed up quickly!

Plus one for this! I am writing an abstract that has an upper word count. At the same time I am using comments for my work and the word count is unreliable. Had to resort to Word :fearful:

+1 I write a ton of math which completely throws my word count out of the window