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)

18 lines (17 loc) 642 B
import * as sre from 'speech-rule-engine/lib/sre.js'; type SreDomain = 'mathspeak' | 'clearspeak' | string; type SreLocale = string; export interface LoadSreOptions { domain?: SreDomain; locale?: SreLocale; [key: string]: unknown; } export declare const loadSre: (options?: {}) => any; /** * Initializes Speech Rule Engine (SRE) with the given options and waits until it is ready. * * @param {LoadSreOptions} [options] SRE engine options (merged with defaults). * @returns {Promise<typeof sre>} The initialized SRE instance. */ export declare const loadSreAsync: (options?: LoadSreOptions) => Promise<typeof sre>; export {};