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/572 below:

Spell checking tweak for ignoring pandoc references? · Issue #572 · jrblevin/markdown-mode · GitHub

Hi there,

Is there any interest in adding pandoc-style reference links (of the form [@refmarker]) to the tokens ignored by flyspell?

Right now, I've just implemented this as an advice to markdown-mode in my own init with the following code, but it seems like it might be useful to others, and am happy to turn it into a contribution to this package if there's interest.

  (defun is-ampersand (s)
  (string= "@" s))

  (defun not-cite ()
   (save-excursion
    (forward-word -1)
    (let ((result (is-ampersand (string (preceding-char)))))
     (not result))))

(defun not-cite-advice (orig &rest args)
(if (not-cite)
(apply orig args)))

  (advice-add 'markdown-flyspell-check-word-p :around #'not-cite-advice)

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