-
Notifications
You must be signed in to change notification settings - Fork 38
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
Ignore spell check in hyperlinks #24
Comments
Meaning you want to check the spelling of the "link text", but not the actual URL? |
Hi @MarekLani I did a test, running $ clear; pyspelling --config spellcheck.yaml
Misspelled words:
<htmlcontent> index.html: html>body
--------------------------------------------------------------------------------
baader
evin
speeling
--------------------------------------------------------------------------------
!!!Spelling check failed!!! HTML file: <a href="/baad_speling/">evin baader speeling</a> Using the configuration outlined here: matrix:
- name: HTML
aspell:
lang: en
dictionary:
encoding: utf-8
pipeline:
- pyspelling.filters.html:
comments: false
sources:
- '**/*.html'
default_encoding: utf-8 Could you please provide me with a copy of you configuration file? |
@jonasbn thank you for response and sorry I should have stated, that this is present in md check. I meant following: This is my config:
|
Hi @MarekLani I have tested against this example file using your provided config: [evin baader speeling](/baad_speling/) $ pyspelling --config spellcheck2.yaml
Misspelled words:
<htmlcontent> index.md: html>body>p
--------------------------------------------------------------------------------
baader
evin
speeling
--------------------------------------------------------------------------------
!!!Spelling check failed!!! The link text is checked, not the URL part. Could you possibly provide me with more data on what you observe, since I cannot reproduce what you request. Do note that From the example above
|
Hi @MarekLani I have responded to your question and I have demonstrated use of the software and it's expected behaviour, so I am closing this issue. |
I'm not sure if the issue still exists for the original author, but I ran into this very issue some time ago and the configuration file discussed here (quoted below) where the HTML filter (with some configurations) is used after the markdown filter, completely solved the issue for me 👍
|
Yes, to avoid |
Please is there a way how to ignore spell check of hyperlinks?
link text
The text was updated successfully, but these errors were encountered: