Mar*_*oma 14 shell spell-checking
我想在发布之前对我的文章进行拼写检查。我认为aspell可以,但它不应该尝试检查代码块:
asdfasdfa adsfa sdfa text to check adsfasd f
```
a wild code block appeared!
thisHas quiteOften() some strings.that should NOT get changed
```
and also `inlined code` should not get checked
Run Code Online (Sandbox Code Playgroud)
Linux 是否存在基于命令行的拼写检查器,它们知道 Markdown 并因此忽略代码块?我需要能够以批处理模式为多个文件运行它。
(如果你认识一个真正了解 LaTeX 的人,可以加分——不,aspell -t不能完全奏效)
我要去加分。我使用emacs并flyspell-mode默认启用 LaTeX 文档。它工作正常并忽略 LaTeX 命令。
我的.emacs文件中的相关行是:
;; load flyspell-mode for LaTeX files
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
;; make flyspell mode ignore latex commands
(setq ispell-extra-args '("--dont-tex-check-comments"))
Run Code Online (Sandbox Code Playgroud)
还没有真正使用过 Markdown,但我想你也可以为它做同样的事情。