Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix types for formattingHanlder #95

Open
github-actions bot opened this issue Jun 13, 2023 · 0 comments
Open

Fix types for formattingHanlder #95

github-actions bot opened this issue Jun 13, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

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

@github-actions github-actions bot added the todo label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants