1
1
/**
2
2
* @typedef {import('mdast').Emphasis } Emphasis
3
- * @typedef {import('mdast').Root } Root
4
- * @typedef {import('mdast').Content } Content
5
- * @typedef {Root|Content } Node
6
- * @typedef {Extract<Node, import('mdast').Parent> } Parent
3
+ * @typedef {import('../types.js').Parent } Parent
7
4
* @typedef {import('../types.js').Context } Context
8
- * @typedef {import('../types.js').SafeOptions } SafeOptions
5
+ * @typedef {import('../types.js').Info } Info
9
6
*/
10
7
11
8
import { checkEmphasis } from '../util/check-emphasis.js'
@@ -20,15 +17,15 @@ emphasis.peek = emphasisPeek
20
17
// Do we need to safeguard against that?
21
18
/**
22
19
* @param {Emphasis } node
23
- * @param {Parent| undefined } _
20
+ * @param {Parent | undefined } _
24
21
* @param {Context } context
25
- * @param {SafeOptions } safeOptions
22
+ * @param {Info } info
26
23
* @returns {string }
27
24
*/
28
- export function emphasis ( node , _ , context , safeOptions ) {
25
+ export function emphasis ( node , _ , context , info ) {
29
26
const marker = checkEmphasis ( context )
30
27
const exit = context . enter ( 'emphasis' )
31
- const tracker = track ( safeOptions )
28
+ const tracker = track ( info )
32
29
let value = tracker . move ( marker )
33
30
value += tracker . move (
34
31
containerPhrasing ( node , context , {
@@ -44,7 +41,7 @@ export function emphasis(node, _, context, safeOptions) {
44
41
45
42
/**
46
43
* @param {Emphasis } _
47
- * @param {Parent| undefined } _1
44
+ * @param {Parent | undefined } _1
48
45
* @param {Context } context
49
46
* @returns {string }
50
47
*/
0 commit comments