How to use renderA11yString #3819
Answered
by
mustafasalahuldin
mustafasalahuldin
asked this question in
Q&A
-
Hello |
Beta Was this translation helpful? Give feedback.
Answered by
mustafasalahuldin
May 15, 2023
Replies: 1 comment 6 replies
-
I believe either of the following imports should work: // ESM
import renderA11yString from "katex/dist/contrib/render-a11y-string.mjs"
// CJS
renderA11yString = require("katex/dist/contrib/render-a11y-string.js") Can you try and report back? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I discovered that renderA11yString is generating
<annotation encoding="application/x-tex">
element, which was useful in my case.I used the document.getElementByTagName('annotation ') to find the readings.