GeezerVison is showing github.com — tools: update lint-md-dependencies to [email protected] · nodejs/node@3053c65
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/lint-md/lint-md.mjs +15-1Lines changed: 15 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -11097,8 +11097,22 @@ const gfmStrikethroughFromMarkdown = { |
11097 | 11097 | enter: {strikethrough: enterStrikethrough}, |
11098 | 11098 | exit: {strikethrough: exitStrikethrough} |
11099 | 11099 | }; |
| 11100 | +const constructsWithoutStrikethrough = [ |
| 11101 | + 'autolink', |
| 11102 | + 'destinationLiteral', |
| 11103 | + 'destinationRaw', |
| 11104 | + 'reference', |
| 11105 | + 'titleQuote', |
| 11106 | + 'titleApostrophe' |
| 11107 | +]; |
11100 | 11108 | const gfmStrikethroughToMarkdown = { |
11101 | | - unsafe: [{character: '~', inConstruct: 'phrasing'}], |
| 11109 | + unsafe: [ |
| 11110 | + { |
| 11111 | + character: '~', |
| 11112 | + inConstruct: 'phrasing', |
| 11113 | + notInConstruct: constructsWithoutStrikethrough |
| 11114 | + } |
| 11115 | + ], |
11102 | 11116 | handlers: {delete: handleDelete} |
11103 | 11117 | }; |
11104 | 11118 | handleDelete.peek = peekDelete; |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/lint-md/package-lock.json +13-13Lines changed: 13 additions & 13 deletions Collapse file
Copy file name to clipboardExpand all lines: tools/lint-md/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 | "devDependencies": { |
17 | 17 | "@rollup/plugin-commonjs": "^23.0.2", |
18 | 18 | "@rollup/plugin-node-resolve": "^15.0.1", |
19 | | - "rollup": "^3.2.3", |
| 19 | + "rollup": "^3.2.5", |
20 | 20 | "rollup-plugin-cleanup": "^3.2.1" |
21 | 21 | } |
22 | 22 | } |