UNPKG

nice-ui

Version:

React design system, components, and utilities

21 lines (20 loc) 539 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const loadScript_1 = require("../../../utils/loadScript"); let cache; const loadMathjax = () => { if (!cache) { /* (window as any).MathJax = { loader: { load: [ 'input/asciimath' ], }, }; */ cache = (0, loadScript_1.loadGlobal)('MathJax', 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg-full.js'); } return cache; }; exports.default = loadMathjax;