-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown filter #558
Markdown filter #558
Conversation
@RobertHenry6bev @hrabbey @zerok could you test this out and let me know if it works for you. Please make sure you follow the instructions in the |
Looks good. Thanks much. It is a helpful improvement, meeting the original request for skipping code blocks / fences, and also URLs, and backtick quoted phrases nicely. As expected, it does not seem to skip some other features of markdown. For a sample file, I used a couple of my own, and I think it is a worthwhile improvement, but I want to emphasize for others that it is only very partially effective. It would not make sense to embed a full parser. Much better to let a user use the markdown parser of their choice, and / or pandoc, to convert to text for elaborate spell checking. However, for short, simple markdown tags, I think this improvement to aspell will be appreciated by others. It is by me. |
That should be doable. (BTW, the URL's are removed by the
Unfortunately, that probably won't work well with the existing filter framework. Aspell needs to be able to determine where the word in the document is, in order to be able to replace the word with the correct spelling. Filters basically work by simply replacing stuff that should not be spell checked with spaces so that text remains aligned. If you just want to check a document and list misspelling you can use pandoc to convert the document to HTML and then pipe the output through |
@hrabbey
will become
but this can be turned off with |
2bbc66d
to
2ea2d94
Compare
Sorry for the late response 😭 Thank you for working on this 😍 |
A pre-release snapshot is now available with the new Markdown filter: https://github.com/GNUAspell/aspell/releases/tag/rel-0.60.8-20190817 if anyone wants to try it out and didn't want to use the git version. |
Todo:
Closes #536.
Use
aspell --mode=markdown
to use.To see what is being ignored use
aspell filter --mode=markdown
.