Skip to content

Ignore some blocks during spell checking #89

Answered by wooorm
BlueCutOfficial asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

Hmm, using English labels in links, in otherwise, say, French, docs, seems a bit weird to me?
As an example, on a French Wikipedia page, you’ll see French text in links, even when they go to English-language pages.
If you’d want to notify readers, I’d personally probably add [xxx (pages en anglais)](yyy) or so?

If you’d want to ignore all links, you could use the source option. source: ['inlineCode', 'link', 'linkReference']

To use comments to control messages, which is what remark-lint does for lint messages, you can use remark-message-control.
You can configure it to look for <!--spell --> comments with name: 'spell', and then to control messages from retext-spell you’d set sources:…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BlueCutOfficial
Comment options

@mansona
Comment options

@wooorm
Comment options

Answer selected by BlueCutOfficial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants