Skip to content

KaTeX Instructions Incomplete/Broken #8010

Discussion options

You must be logged in to vote

Hello @michaelweinold,
the instructions for setting up KaTeX in the docs are given for this theme specifically:

document$.subscribe(({ body }) => { 
  renderMathInElement(body, {
  // ...

the document$ observable object is exposed only in the material theme:

window.document$ = document$ /* Document observable */
window.location$ = location$ /* Location subject */
window.target$ = target$ /* Location target observable */
window.keyboard$ = keyboard$ /* Keyboard observable */
window.viewport$ = viewport$ /* Viewport observable */
window.tablet$ = tablet$ /* Media table…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michaelweinold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #8009 on February 18, 2025 01:43.