File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 38
38
"tape" : " ^5.0.0" ,
39
39
"to-vfile" : " ^7.0.0" ,
40
40
"type-coverage" : " ^2.0.0" ,
41
- "typescript" : " ^4 .0.0" ,
41
+ "typescript" : " ^5 .0.0" ,
42
42
"unified" : " ^10.0.0" ,
43
43
"unist-builder" : " ^3.0.0" ,
44
44
"unist-util-remove-position" : " ^4.0.0" ,
45
- "xo" : " ^0.52 .0"
45
+ "xo" : " ^0.54 .0"
46
46
},
47
47
"scripts" : {
48
48
"build" : " npm run build --workspaces" ,
60
60
"trailingComma" : " none"
61
61
},
62
62
"xo" : {
63
- "prettier" : true
63
+ "prettier" : true ,
64
+ "rules" : {
65
+ "unicorn/prefer-logical-operator-over-ternary" : " off"
66
+ }
64
67
},
65
68
"remarkConfig" : {
66
69
"plugins" : [
67
- " preset-wooorm"
70
+ " remark- preset-wooorm"
68
71
]
69
72
},
70
73
"typeCoverage" : {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {mathFromMarkdown, mathToMarkdown} from 'mdast-util-math'
11
11
/**
12
12
* Plugin to support math.
13
13
*
14
+ * @this {import('unified').Processor}
14
15
* @type {import('unified').Plugin<[Options?] | void[], Root, Root> }
15
16
*/
16
17
export default function remarkMath ( options = { } ) {
@@ -25,7 +26,7 @@ export default function remarkMath(options = {}) {
25
26
* @param {unknown } value
26
27
*/
27
28
function add ( field , value ) {
28
- const list = /** @type {unknown[] } */ (
29
+ const list = /** @type {Array< unknown> } */ (
29
30
// Other extensions
30
31
/* c8 ignore next 2 */
31
32
data [ field ] ? data [ field ] : ( data [ field ] = [ ] )
Original file line number Diff line number Diff line change @@ -153,10 +153,10 @@ See its readme for parse details:
153
153
154
154
> 👉 ** Note** : Like code, the difference between “inline” and “block”,
155
155
> is in the line endings:
156
- >
156
+ >
157
157
> ``` markdown
158
158
> $$inline$$
159
- >
159
+ >
160
160
> $$
161
161
> block
162
162
> $$
You can’t perform that action at this time.
0 commit comments