A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/311 below:

Issues with flyspell mode in code blocks · Issue #311 · jrblevin/markdown-mode · GitHub

Code in code blocks is incorrectly treated as spelling error by Flyspell.

Expected Behavior

Code in code blocks is never treated as spelling error.

Actual Behavior

Code in code blocks is occasionally treated as spelling error (see reproduction steps below).

Steps to Reproduce
  1. Start Emacs and load markdown-mode.
  2. Visit a nonexisting Markdown file.
  3. Enable flyspell-mode (M-x flyspell-mode)
  4. Insert a code block with nonexisting words, such as

"aaa" and "bbb" will now get the red Flyspell underline because they are spelling errors, but Flyspell should ignore code. Interestingly, markdown-flyspell-check-word-p returns nil inside the code block, i.e. it's detected correctly. Saving and then reverting the buffer using M-x revert-buffer doesn't help. Only turning Flyspell mode off and on again (by hitting M-x flyspell-mode twice) works.

Software Versions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4