-
Notifications
You must be signed in to change notification settings - Fork 19
/
cspell.yaml
36 lines (35 loc) · 1.06 KB
/
cspell.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
dictionaries:
- custom-words
dictionaryDefinitions:
- name: custom-words
path: ./custom-words.txt
addWords: true
patterns:
# Ignore multi-line code blocks
# Ref: https://cspell.org/configuration/patterns/
# Modified to avoid matching line breaks before/after which had unexpected results
- name: markdown_code_block
pattern: |
/
^[ \t]* # match optional whitespace before the ```
(`{3}).* # match the ``` and any optional language specification afterwards
[\s\S]*? # the block of code
^[ \t]* # match optional whitespace before the ```
\1 # end of the block
/gmx
# Ignore inline code blocks
- name: markdown_code_inline
pattern: |
/
` # match the opening `
.*? # match any characters, lazily (so that we stop at the next tilde)
` # match the closing `
/gx
languageSettings:
- languageId:
- markdown
- mdx
ignoreRegExpList:
- markdown_code_block
- markdown_code_inline