-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect word count compared to wc -w #726
Comments
I suppose that title="How"
You can change emacs behavior through syntax-table configuration. Please modify your syntax-table configuration in markdown-mode, if you want emacs to work same as Reference |
i understand where the bug comes from, what I am saying is i think markdown-mode should ship with such a syntax table. is there a table that i missed? |
This is impossible. If markdown-mode uses such a syntax table, then many markdown commands and highlighting don't work as expected. And it also changes behaviors of many other commands such as word moving commands( You can modify syntax-table personally . Please check |
Markdown mode doesn't seem to support telling Emacs to skip certain characters to make sure word counts are accurate. An example of a recent text I wrote counts almost a thousand more words than
wc
.Expected Behavior
Actual Behavior
M-x count-words gives me:
Kind of fascinating that the byte count is different as well. I suspect that might be a bug in
wc
, where it would count UTF-8 characters as multiple characters instead of single ones.Steps to Reproduce
markdown-mode
enabledBacktrace
N/A
Software Versions
The text was updated successfully, but these errors were encountered: