Skip to content

Commit 17acf6f

Browse files
committed
Fix type guard for html
1 parent 36f49e8 commit 17acf6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @typedef {import('mdast').Html} Html
23
* @typedef {import('mdast').PhrasingContent} PhrasingContent
34
*/
45

@@ -16,12 +17,13 @@ import {convert} from 'unist-util-is'
1617
*/
1718

1819
export const phrasing =
19-
/** @type {(node?: unknown) => node is PhrasingContent} */
20+
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
2021
(
2122
convert([
2223
'break',
2324
'delete',
2425
'emphasis',
26+
// To do: next major: removed since footnotes were added to GFM.
2527
'footnote',
2628
'footnoteReference',
2729
'image',

0 commit comments

Comments
 (0)