errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.3k stars 144 forks source link

Math sometimes spellchecked #839

Open kellertuer opened 1 month ago

kellertuer commented 1 month ago

Check for existing issues

Environment

Mac OS vale 3.4.2 (homebrew)

Describe the bug / provide steps to reproduce it

With the config from here https://github.com/JuliaManifolds/Manopt.jl/blob/7803ce3c69454c4d9f98ba2d6056f37d4f0bfe46/.vale.ini

If I have two lines containing math (the first one was line 89 in my markdown/Quarto file

This is a test $g_i$
This is a test $g_i $
This is a second test $g_i = g(p)_i = p_i$

yields the error

    90:17   error    Did you really mean 'g_i'?      Vale.Spelling
    91:17   error    Did you really mean 'g_i'?      Vale.Spelling

so math with a space (cases 2 and 3 above) yields that the formula gets treated as text.

Is that an error in my expressions or on vale's side?