File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ export interface MathJaxConfig extends MJConfig {
7171/**
7272 * Generic types for the standard MathJax objects
7373 */
74- export type MATHDOCUMENT = MathDocument < any , any , any > ;
74+ export type MATHDOCUMENT = MathDocument < any , any , any > & {
75+ menu ?: { loadingPromise : Promise < void > } ;
76+ } ;
7577export type HANDLER = Handler < any , any , any > ;
7678export type DOMADAPTOR = DOMAdaptor < any , any , any > ;
7779export type INPUTJAX = InputJax < any , any , any > ;
@@ -325,6 +327,7 @@ export abstract class Startup {
325327 ? ( Startup . output as COMMONJAX ) . font . loadDynamicFiles ( )
326328 : Promise . resolve ( )
327329 )
330+ . then ( ( ) => Startup . document . menu ?. loadingPromise )
328331 . then (
329332 CONFIG . typeset && MathJax . typesetPromise
330333 ? ( ) => Startup . typesetPromise ( CONFIG . elements )
You can’t perform that action at this time.
0 commit comments