-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Fix types for formattingHanlder
| // @ts-expect-error TODO: Fix types for formattingHanlder |
if (!prop || !('w:val' in prop) || !prop['w:val'] || prop['w:val'] === '0') {
return text
}
const tagName = name.replace(/\w+:/, '') as keyof typeof h.formattingHandlers
const handler = h.formattingHandlers[tagName]
if (handler) {
text = handler(
h,
text,
// @ts-expect-error TODO: Fix types for formattingHanlder
prop,
node,
)
}
return text
}, text as UnifiedLatexNode | UnifiedLatexNode[])
return formattedText
}002092943ea076daf78d55badaa52c7c12e1cf99
Reactions are currently unavailable