File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 6
6
import footnotes from "remark-footnotes" ;
7
7
import frontmatter from "remark-frontmatter" ;
8
8
import gfm from "remark-gfm" ;
9
+ import strikethroughMarker from "remark-lint-strikethrough-marker" ;
9
10
10
11
/**
11
12
* Support for plugins of specification addons and variants.
@@ -50,6 +51,12 @@ const support = {
50
51
tablePipeAlign : true ,
51
52
} ,
52
53
] ,
54
+ /**
55
+ * Warn when the number of strikethrough markers is inconsistent and does not use two strikethrough markers.
56
+ * @see https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strikethrough-marker
57
+ * @see https://github.com/svengreb/styleguide-markdown/blob/main/rules/emphasis.md#strikethrough
58
+ */
59
+ [ strikethroughMarker , "~~" ] ,
53
60
] ,
54
61
} ;
55
62
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Use two (2) asterisk `*` marker to generate spans for bold formatted text.
64
64
65
65
Use two (2) tilde ` ~ ` marker to generate spans for strikethrough text.
66
66
67
- > remark-lint: [ emphasis-marker] [ 2 ]
67
+ > remark-lint: [ strikethrough-marker ] [ 6 ] , [ emphasis-marker] [ 2 ]
68
68
69
69
###### Examples
70
70
@@ -171,3 +171,4 @@ __ Snow __
171
171
[ 3 ] : https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-emphasis-as-heading
172
172
[ 4 ] : https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-inline-padding
173
173
[ 5 ] : https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker
174
+ [ 6 ] : https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strikethrough-marker
You can’t perform that action at this time.
0 commit comments