Spell-check underline bug
Red dot shows in the margin; but the word isn't underlined. I'm guessing it's because it's part of a hyphenate. When I replace the hyphen with a space, the underline shows up correctly.
Here's the paragraph and a screenshot:
This course is the first semester of a four-sememster music theory program. It provides an introduction to the study of tonal music through the exploration of melody, rhythm, harmony, and musical form. Lab sections emphasize **aural skills**.
Turns out, "sememster" is not a word. Yet.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on Aug 22, 2017 @ 02:09 PM
Thanks for the report. The short response is that it's a known issue,
but the longer answer is:
Because WebKit can't be spellchecked by default, what Marked has to do
is gather the text, send it through the system spellcheck API, then
parse the results and attempt to match them back up with the text.
Certain circumstances, such as if a hyphen is escaped in any way or
there's an HTML tag in the original that wasn't sent to the
spellchecker, can result in an inability to locate the exact text that
triggered an error. The best stopgap there was simply to show the
paragraph where the error existed, and note what the error was.
Generally it's able to highlight, but there are definitely edge cases.
This one might simply be that the API response from the hyphenate didn't
include the other half of the word, so Marked's regular expression
failed matching "sememster" with "four-sememster" in the original text.
It's a tricky setup (and why I chose to sell the feature as an add-on, I
gave many hours of my life to making it work :) ).
-Brett
2 Posted by davidjohnmacdon... on Aug 24, 2017 @ 12:56 AM
No worries. Thanks for all your work on the app. This is not a major issue for me, and I'm happy to use Marked as is while you focus on more important things. I'll buy the next add-on, too.