File tree Expand file tree Collapse file tree 7 files changed +180
-177
lines changed Expand file tree Collapse file tree 7 files changed +180
-177
lines changed Original file line number Diff line number Diff line change 77 name : ${{matrix.node}}
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v3
11- - uses : actions/setup-node@v3
10+ - uses : actions/checkout@v4
11+ - uses : actions/setup-node@v4
1212 with :
1313 node-version : ${{matrix.node}}
1414 - run : npm install
1515 - run : npm test
16- - uses : codecov/codecov-action@v3
16+ - uses : codecov/codecov-action@v4
1717 strategy :
1818 matrix :
1919 node :
Original file line number Diff line number Diff line change @@ -141,14 +141,16 @@ export function footer(state) {
141141 let referenceIndex = - 1
142142
143143 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+ )
145147
146- if ( ! def ) {
148+ if ( ! definition ) {
147149 continue
148150 }
149151
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 ( )
152154 const safeId = normalizeUri ( id . toLowerCase ( ) )
153155 let rereferenceIndex = 0
154156 /** @type {Array<ElementContent> } */
@@ -214,7 +216,7 @@ export function footer(state) {
214216 children : state . wrap ( content , true )
215217 }
216218
217- state . patch ( def , listItem )
219+ state . patch ( definition , listItem )
218220
219221 listItems . push ( listItem )
220222 }
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ import {revert} from '../revert.js'
2121 */
2222export function imageReference ( state , node ) {
2323 const id = String ( node . identifier ) . toUpperCase ( )
24- const def = state . definitionById . get ( id )
24+ const definition = state . definitionById . get ( id )
2525
26- if ( ! def ) {
26+ if ( ! definition ) {
2727 return revert ( state , node )
2828 }
2929
3030 /** @type {Properties } */
31- const properties = { src : normalizeUri ( def . url || '' ) , alt : node . alt }
31+ const properties = { src : normalizeUri ( definition . url || '' ) , alt : node . alt }
3232
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
3535 }
3636
3737 /** @type {Element } */
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ import {revert} from '../revert.js'
2121 */
2222export function linkReference ( state , node ) {
2323 const id = String ( node . identifier ) . toUpperCase ( )
24- const def = state . definitionById . get ( id )
24+ const definition = state . definitionById . get ( id )
2525
26- if ( ! def ) {
26+ if ( ! definition ) {
2727 return revert ( state , node )
2828 }
2929
3030 /** @type {Properties } */
31- const properties = { href : normalizeUri ( def . url || '' ) }
31+ const properties = { href : normalizeUri ( definition . url || '' ) }
3232
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
3535 }
3636
3737 /** @type {Element } */
Original file line number Diff line number Diff line change 126126 * pass an empty string.
127127 * You can also add different properties.
128128 *
129- * > 👉 **Note**: `id: 'footnote-label'` is always added, because footnote
129+ * > **Note**: `id: 'footnote-label'` is always added, because footnote
130130 * > calls use it with `aria-describedby` to provide an accessible label.
131131 * @property {string | null | undefined } [footnoteLabelTagName='h2']
132132 * HTML tag name to use for the footnote label element (default: `'h2'`).
Original file line number Diff line number Diff line change 4848 "@types/ungap__structured-clone" : " ^1.0.0" ,
4949 "c8" : " ^9.0.0" ,
5050 "hast-util-to-html" : " ^9.0.0" ,
51- "hastscript" : " ^8 .0.0" ,
51+ "hastscript" : " ^9 .0.0" ,
5252 "mdast-util-from-markdown" : " ^2.0.0" ,
5353 "mdast-util-gfm" : " ^3.0.0" ,
5454 "micromark-extension-gfm" : " ^3.0.0" ,
5555 "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" ,
5858 "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"
6161 },
6262 "scripts" : {
6363 "prepack" : " npm run build && npm run format" ,
You can’t perform that action at this time.
0 commit comments