-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update Markdown dictionary (#3713)
- Loading branch information
Showing
9 changed files
with
153 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,3 @@ | ||
{ | ||
"id": "markdown", | ||
"version": "0.2", | ||
"name": "Markdown", | ||
"description": "Markdown dictionary for cspell.", | ||
"readonly": true, | ||
"dictionaryDefinitions": [ | ||
{ | ||
"name": "markdown", | ||
"path": "./markdown.txt.gz", | ||
"description": "Markdown dictionary for cspell." | ||
} | ||
], | ||
"patterns": [ | ||
{ | ||
"name": "MARKDOWN-link-reference", | ||
"description": "Markdown reference link: `[This is a link][reference]`", | ||
"pattern": "/(?<=\\])\\[[-\\w.`'\"*&;#@ ]+\\]/g" | ||
}, | ||
{ | ||
"name": "MARKDOWN-link-footer", | ||
"description": "Markdown referenced link: `[reference]: https://www.google.com`", | ||
"pattern": "/\\[[-\\w.`'\"*&;#@ ]+\\]:( [^\\s]*)?/g" | ||
}, | ||
{ | ||
"name": "MARKDOWN-link", | ||
"description": "Markdown link: `[link text](link)`, matches `link`", | ||
"pattern": "/(?<=\\]\\()[^)\\s]+/g" | ||
}, | ||
{ | ||
"name": "MARKDOWN-anchor", | ||
"description": "Markdown Anchors: `<a id=\"my_link\"></a>`, matches `my_link`", | ||
"pattern": "/(?<=<a\\s+id=\")[^\"\\s]+/g" | ||
} | ||
], | ||
"languageSettings": [ | ||
{ | ||
"languageId": "markdown,mdx", | ||
"locale": "*", | ||
"ignoreRegExpList": ["MARKDOWN-link-reference", "MARKDOWN-link-footer", "MARKDOWN-link", "MARKDOWN-anchor"], | ||
"patterns": [], | ||
"dictionaries": ["markdown"], | ||
"dictionaryDefinitions": [] | ||
} | ||
] | ||
"import": ["./cspell-ext.yaml"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
id: markdown | ||
version: '0.2' | ||
name: Markdown | ||
description: Markdown dictionary for cspell. | ||
readonly: true | ||
dictionaryDefinitions: | ||
# To be added when there are keywords. | ||
# - name: markdown | ||
# path: ./markdown.txt.gz | ||
# description: Markdown dictionary for cspell. | ||
patterns: | ||
- name: MARKDOWN-link-reference | ||
description: 'Markdown reference link: `[This is a link][reference]`, matches `[reference]`' | ||
pattern: >- | ||
/(?<=\])\[[-\w.`'"*&;#@ ]+\]/g | ||
- name: MARKDOWN-link-footer | ||
description: 'Markdown referenced link: `[reference]: https://www.google.com`, matches the entire reference.' | ||
pattern: >- | ||
/\[[-\w.`'"*&;#@ ]+\]:( [^\s]*)?/g | ||
- name: MARKDOWN-link | ||
description: 'Markdown link: `[link text](link)`, matches `link`' | ||
pattern: >- | ||
/(?<=\]\()[^)\s]+/g | ||
- name: MARKDOWN-anchor | ||
description: 'Markdown Anchors: `<a id="my_link"></a>`, matches `my_link`' | ||
pattern: >- | ||
/(?<=<a\s+id=")[^"\s]+/g | ||
languageSettings: | ||
- languageId: markdown,mdx | ||
locale: '*' | ||
ignoreRegExpList: | ||
- MARKDOWN-link-reference | ||
- MARKDOWN-link-footer | ||
- MARKDOWN-link | ||
- MARKDOWN-anchor | ||
- HTML-symbol-entity | ||
dictionaries: | ||
- html | ||
- html-symbol-entities | ||
- typescript | ||
- languageId: mdx | ||
locale: '*' | ||
dictionaries: | ||
- html | ||
- html-symbol-entities | ||
- typescript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json | ||
|
||
$schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json | ||
targets: | ||
- name: markdown | ||
targetDirectory: . | ||
compress: true | ||
format: plaintext | ||
sources: | ||
- src/markdown.txt | ||
sort: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Markdown Keywords |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.