Skip to content

Filtering with pyspelling.filters.context #165

Answered by facelessuser
gllmflndn asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know what other filters you are using, but assuming you aren't using the Markdown filter and enabling the emoji extension to process the emoji, you could do something like this:

  - pyspelling.filters.context:
      context_visible_first: true
      delimiters:
      - open: ':'
        content: '[\w-]+'
        close: ':'

We don't know if they will be at the start of the chunk being evaluated so we don't want to specify ^. We also don't know if it will be at the end, so we won't use $.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@facelessuser
Comment options

@gllmflndn
Comment options

@gllmflndn
Comment options

@facelessuser
Comment options

@gllmflndn
Comment options

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