Skip to content

Word count wrong when links are present #6486

@malmeida

Description

@malmeida
  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • Searched http://support.typora.io/


Describe the bug
Word count is wrong when links are present. Every link is counted as 3 words.

To Reproduce
Steps to reproduce the behavior:

  1. create a simple markup with a link. Example:

link

  1. word count is shown as 3, should be 1

Expected behavior
Links are counted as 2 or 3 words, should only be one word.

Example:

link - 3 works (wrong)
link - 2 works (wrong)

Screenshots / Screencasts
Not needed

Sample Markdown File
link

Desktop (please complete the following information):

  • OS: Mac OS X - Tahoe 26.2

Typora Version
Version 1.12.6 (7588)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions