Closed nicholaswilde closed 2 years ago
Good catch. This might be as simple as upgrading the version of the remark-gemoji-to-emoji package that this project uses.
It looks like remark-gemoji-to-emoji hasn't been upgraded in a while. Seems like there's an equivalent package called remark-gemoji that's under @remarkjs, so that's promising.
I'm having difficulty using this package, though. I get type errors that I'm having trouble understanding. I think they might be related to using an old version of Remark. But I'm also stuck on upgrading Remark because Remark v14 moved from CommonJS modules to ES modules and I haven't yet figured out how to use the latter in this project.
Bah, it's the worst when relying on libraries that are out of date. I feel your pain. Thanks for looking into this so quickly 🙏🏽.
Do you happen to know how to bypass it for now by adding an entry to dictionary.txt
?
If the tool is really failing on the empty string, I don't know if we can really catch that case with dictionary.txt
.
Maybe a programmatic dictionary with an empty regex would work:
// dictionary.js
module.exports = [/^$/];
Another workaround would be to replace :gear:
with a literal gear emoji character.
Using a literal ⚙️ worked, although not ideal. Thanks for the help.
When using a gear emoji in a markdown file,
spellchecker
flags the emoji but should probably be skipped.Steps to reproduce the issue
Expected behavior
spellchecker version:
v4.11.0