Closed GregorDeCillia closed 5 years ago
It doesn't happen if you give the url a real text like this:
[issue #21](https://github.com/ropensci/spelling/issues/21)
Or if you want the text to be the actual link to you can wrap it in backticks:
[`https://github.com/ropensci/spelling/issues/21`](https://github.com/ropensci/spelling/issues/21)
But yes if you insert plain URLs in your text they are going to be spell checked...
Thanks for letting me know. The workaround with the backticks looks good to me.
urls in markdown (md) documents are spell-checked in
spell_check_files()
andspell_check_package()
as long as they have angle brackets around them. This is inconsistent with the behavior of links without angle brackets, which are not spellchecked.Here is a repex where I create a markdown file from an rmarkdown file using
rmarkdown::github_document()
.As we can see, only the urls in the
.md
file are spellchecked. If the angle brackets get removed, all spell checks pass.It would be very handy if this could be fixed in the spelling package, since I am using
rmarkdown::github_document()
for most of my R packages and I don't see an elegant way to runspell_check_package()
without getting spellcheck-warnings because of this behavior.