UNPKG

mathpix-markdown-it

Version:

Mathpix-markdown-it is an open source implementation of the mathpix-markdown spec written in Typescript. It relies on the following open source libraries: MathJax v3 (to render math with SVGs), markdown-it (for standard Markdown parsing)

21 lines (20 loc) 621 B
declare class ThemeManager { colors: any; theme: any; constructor(colors: any, theme: any); /** * Returns the hex code of a color associated with a key from the current theme. * * @param {String} key The color key in the theme (e.g. C, N, BACKGROUND, ...). * @returns {String} A color hex value. */ getColor(key: any): any; /** * Sets the theme to the specified string if it exists. If it does not, this * does nothing. * * @param {String} theme the name of the theme to switch to */ setTheme(theme: any): void; } export default ThemeManager;