11/**
22 * @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
74 * @typedef {import('../types.js').Context } Context
8- * @typedef {import('../types.js').SafeOptions } SafeOptions
5+ * @typedef {import('../types.js').Info } Info
96 */
107
118import { checkEmphasis } from '../util/check-emphasis.js'
@@ -20,15 +17,15 @@ emphasis.peek = emphasisPeek
2017// Do we need to safeguard against that?
2118/**
2219 * @param {Emphasis } node
23- * @param {Parent| undefined } _
20+ * @param {Parent | undefined } _
2421 * @param {Context } context
25- * @param {SafeOptions } safeOptions
22+ * @param {Info } info
2623 * @returns {string }
2724 */
28- export function emphasis ( node , _ , context , safeOptions ) {
25+ export function emphasis ( node , _ , context , info ) {
2926 const marker = checkEmphasis ( context )
3027 const exit = context . enter ( 'emphasis' )
31- const tracker = track ( safeOptions )
28+ const tracker = track ( info )
3229 let value = tracker . move ( marker )
3330 value += tracker . move (
3431 containerPhrasing ( node , context , {
@@ -44,7 +41,7 @@ export function emphasis(node, _, context, safeOptions) {
4441
4542/**
4643 * @param {Emphasis } _
47- * @param {Parent| undefined } _1
44+ * @param {Parent | undefined } _1
4845 * @param {Context } context
4946 * @returns {string }
5047 */
0 commit comments