File tree 7 files changed +180
-177
lines changed
7 files changed +180
-177
lines changed Original file line number Diff line number Diff line change 7
7
name : ${{matrix.node}}
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v3
11
- - uses : actions/setup-node@v3
10
+ - uses : actions/checkout@v4
11
+ - uses : actions/setup-node@v4
12
12
with :
13
13
node-version : ${{matrix.node}}
14
14
- run : npm install
15
15
- run : npm test
16
- - uses : codecov/codecov-action@v3
16
+ - uses : codecov/codecov-action@v4
17
17
strategy :
18
18
matrix :
19
19
node :
Original file line number Diff line number Diff line change @@ -141,14 +141,16 @@ export function footer(state) {
141
141
let referenceIndex = - 1
142
142
143
143
while ( ++ referenceIndex < state . footnoteOrder . length ) {
144
- const def = state . footnoteById . get ( state . footnoteOrder [ referenceIndex ] )
144
+ const definition = state . footnoteById . get (
145
+ state . footnoteOrder [ referenceIndex ]
146
+ )
145
147
146
- if ( ! def ) {
148
+ if ( ! definition ) {
147
149
continue
148
150
}
149
151
150
- const content = state . all ( def )
151
- const id = String ( def . identifier ) . toUpperCase ( )
152
+ const content = state . all ( definition )
153
+ const id = String ( definition . identifier ) . toUpperCase ( )
152
154
const safeId = normalizeUri ( id . toLowerCase ( ) )
153
155
let rereferenceIndex = 0
154
156
/** @type {Array<ElementContent> } */
@@ -214,7 +216,7 @@ export function footer(state) {
214
216
children : state . wrap ( content , true )
215
217
}
216
218
217
- state . patch ( def , listItem )
219
+ state . patch ( definition , listItem )
218
220
219
221
listItems . push ( listItem )
220
222
}
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ import {revert} from '../revert.js'
21
21
*/
22
22
export function imageReference ( state , node ) {
23
23
const id = String ( node . identifier ) . toUpperCase ( )
24
- const def = state . definitionById . get ( id )
24
+ const definition = state . definitionById . get ( id )
25
25
26
- if ( ! def ) {
26
+ if ( ! definition ) {
27
27
return revert ( state , node )
28
28
}
29
29
30
30
/** @type {Properties } */
31
- const properties = { src : normalizeUri ( def . url || '' ) , alt : node . alt }
31
+ const properties = { src : normalizeUri ( definition . url || '' ) , alt : node . alt }
32
32
33
- if ( def . title !== null && def . title !== undefined ) {
34
- properties . title = def . title
33
+ if ( definition . title !== null && definition . title !== undefined ) {
34
+ properties . title = definition . title
35
35
}
36
36
37
37
/** @type {Element } */
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ import {revert} from '../revert.js'
21
21
*/
22
22
export function linkReference ( state , node ) {
23
23
const id = String ( node . identifier ) . toUpperCase ( )
24
- const def = state . definitionById . get ( id )
24
+ const definition = state . definitionById . get ( id )
25
25
26
- if ( ! def ) {
26
+ if ( ! definition ) {
27
27
return revert ( state , node )
28
28
}
29
29
30
30
/** @type {Properties } */
31
- const properties = { href : normalizeUri ( def . url || '' ) }
31
+ const properties = { href : normalizeUri ( definition . url || '' ) }
32
32
33
- if ( def . title !== null && def . title !== undefined ) {
34
- properties . title = def . title
33
+ if ( definition . title !== null && definition . title !== undefined ) {
34
+ properties . title = definition . title
35
35
}
36
36
37
37
/** @type {Element } */
Original file line number Diff line number Diff line change 126
126
* pass an empty string.
127
127
* You can also add different properties.
128
128
*
129
- * > 👉 **Note**: `id: 'footnote-label'` is always added, because footnote
129
+ * > **Note**: `id: 'footnote-label'` is always added, because footnote
130
130
* > calls use it with `aria-describedby` to provide an accessible label.
131
131
* @property {string | null | undefined } [footnoteLabelTagName='h2']
132
132
* HTML tag name to use for the footnote label element (default: `'h2'`).
Original file line number Diff line number Diff line change 48
48
"@types/ungap__structured-clone" : " ^1.0.0" ,
49
49
"c8" : " ^9.0.0" ,
50
50
"hast-util-to-html" : " ^9.0.0" ,
51
- "hastscript" : " ^8 .0.0" ,
51
+ "hastscript" : " ^9 .0.0" ,
52
52
"mdast-util-from-markdown" : " ^2.0.0" ,
53
53
"mdast-util-gfm" : " ^3.0.0" ,
54
54
"micromark-extension-gfm" : " ^3.0.0" ,
55
55
"prettier" : " ^3.0.0" ,
56
- "remark-cli" : " ^11 .0.0" ,
57
- "remark-preset-wooorm" : " ^9 .0.0" ,
56
+ "remark-cli" : " ^12 .0.0" ,
57
+ "remark-preset-wooorm" : " ^10 .0.0" ,
58
58
"type-coverage" : " ^2.0.0" ,
59
- "typescript" : " ^5.0.0 " ,
60
- "xo" : " ^0.56 .0"
59
+ "typescript" : " ^5.5.1-rc " ,
60
+ "xo" : " ^0.58 .0"
61
61
},
62
62
"scripts" : {
63
63
"prepack" : " npm run build && npm run format" ,
You can’t perform that action at this time.
0 commit comments