# Markdown-aware spell check?

**URL:** <https://talk.commonmark.org/t/markdown-aware-spell-check/3152>\
**Category:** Uncategorized\
**Created:** [May 10, 2019, 4:20pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152 "2019-05-10T16:20:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![novelistparty](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/n/aeb1de/32.png) [@novelistparty](https://talk.commonmark.org/u/novelistparty)\
**Post date:** [May 10, 2019, 4:20pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/1 "2019-05-10T16:20:03Z")

</div>

I searched a lot and could not find a syntax-aware spell check for Markdown. This means it would ignore things within backticks, code blocks, URLs.

The most serious discussion is at Atom, specifically [this Atom spell-check issue](https://github.com/atom/spell-check/issues/2). It references several other issues that were consolidated into that one.

This is a **major** deficiency of the Markdown ecosystem.

I’m wanting to recommend coworkers write most things in Markdown, but _only if it has spell checking_.

When you use regular spell check on a Markdown file, there is too much noise. You have to ignore or add every single variable name or part of a file path or language keyword. It’s unusable. It needs to be syntax aware.

_And one more general request to the universe: that people write their general tools like spell checkers as libraries/programs that could be used within the most other tools. Too much Markdown syntax aware tooling is locked behind specific editor plugin code. Way too much repetition of such a common need._

---

<div class="post-metadata">

**Author:** ![DStaal](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/d/bcef8e/32.png) [@DStaal](https://talk.commonmark.org/u/DStaal)\
**Post date:** [May 10, 2019, 5:22pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/2 "2019-05-10T17:22:34Z")

</div>

What OS are you looking for the editor on?

---

<div class="post-metadata">

**Author:** ![novelistparty](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/n/aeb1de/32.png) [@novelistparty](https://talk.commonmark.org/u/novelistparty)\
**Post date:** [May 10, 2019, 5:25pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/3 "2019-05-10T17:25:06Z")

</div>

macOS and Linux would be nice

---

<div class="post-metadata">

**Author:** ![jgm](https://talk.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [May 10, 2019, 11:30pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/4 "2019-05-10T23:30:49Z")

</div>

Here’s a lua filter for pandoc that can do the job.

> **[lua-filters/spellcheck at master · pandoc/lua-filters](https://github.com/pandoc/lua-filters/tree/master/spellcheck)**
>
> master/spellcheck

If you wanted something lighter than pandoc you could write a similar filter for

> **[GitHub - jgm/lcmark: Flexible CommonMark converter](https://github.com/jgm/lcmark)**
>
> Flexible CommonMark converter

Or you could write something in C that uses libcmark and its iterator interface. (Or in commonmark-js if JavaScript fits the project.) With this approach you could create a library that could be used anywhere.

---

<div class="post-metadata">

**Author:** ![DStaal](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/d/bcef8e/32.png) [@DStaal](https://talk.commonmark.org/u/DStaal)\
**Post date:** [May 11, 2019, 3:34pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/5 "2019-05-11T15:34:42Z")

</div>

I use BBEdit (which can do this), but I’d assume any of the Markdown-focused text editors would likely be able to handle that.

---

<div class="post-metadata">

**Author:** ![novelistparty](https://talk.commonmark.org/letter_avatar_proxy/v2/letter/n/aeb1de/32.png) [@novelistparty](https://talk.commonmark.org/u/novelistparty)\
**Post date:** [May 14, 2019, 8:49pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/6 "2019-05-14T20:49:20Z")

</div>

most don’t

I’m glad to hear BBEdit does

It’s surprisingly hard to find out if any given editor has language-aware spell check

---

<div class="post-metadata">

**Author:** ![shorty66](https://talk.commonmark.org/user_avatar/talk.commonmark.org/shorty66/32/1252_2.png) [@shorty66](https://talk.commonmark.org/u/shorty66)\
**Post date:** [May 31, 2019, 6:17pm UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/7 "2019-05-31T18:17:39Z")

</div>

There is a plugin for **VSCode** called **SpellRight** which does this correctly.  
It’s a bit limited regarding user-provided dictionary additions, though.

It also works with the **LaTeX Workshop** -plugin which allows you to write latex documents directly in VSCode.

---

<div class="post-metadata">

**Author:** ![Nikolaus\_Kuhn](https://talk.commonmark.org/user_avatar/talk.commonmark.org/nikolaus_kuhn/32/1841_2.png) [@Nikolaus\_Kuhn](https://talk.commonmark.org/u/Nikolaus_Kuhn)\
**Post date:** [April 15, 2020, 9:30am UTC](https://talk.commonmark.org/t/markdown-aware-spell-check/3152/8 "2020-04-15T09:30:26Z")

</div>

We now settled our documentation authoring workspace on using the vale writing style linter ( [https://errata-ai.gitbook.io/vale/](https://errata-ai.gitbook.io/vale/) ) via the supporting VSCode plugin. It has built-in spellcheck support (hunspell based I think) but goes far beyond.

In addition or alternatively we use the above mentioned VSCode “spellright” plugin which is using the Operating System Spellcheck API which, at least on my mac, is better in its recommendations and detection than most open source implementations.
