You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the absence of window.MathJax.Hub.Queue, fancy description typesetting fails.
Proposed Solution
As this seems like an host application-level concern, moving this to the manager would ensure that applications could provide this capability more robustly.
prefer the manager's typesetter, fall back to the window-level method otherwise to maintain backwards compatibility
Additional context
It would actually be quite nice if these were actually run through text/ipython-gfm typesetting, but this would be a breaking change if folk expected only $ replacement, unless it was opt-in.
The text was updated successfully, but these errors were encountered:
No, this hasn't been PRd yet. As it would be an additive feature to the manager interface, I'm not sure if this would be a breaking change... I haven't looked for in-the-wild uses of DescriptionView.typeset.
I think the larger point would be looking at a bunch of places where typeset is used (and some places it probably isn't but should be) and using the host application's markdown renderer so that latex just shakes out of it.
References
Problem
In the absence of
window.MathJax.Hub.Queue
, fancy description typesetting fails.Proposed Solution
As this seems like an host application-level concern, moving this to the manager would ensure that applications could provide this capability more robustly.
Some of the following might work:
typeset?
toIWidgetManager
and prefer thistypeset(element: HTMLElement, text: string, manager?: IWidgetManager)
window
-level method otherwise to maintain backwards compatibilityAdditional context
It would actually be quite nice if these were actually run through
text/ipython-gfm
typesetting, but this would be a breaking change if folk expected only$
replacement, unless it was opt-in.The text was updated successfully, but these errors were encountered: