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)
64 lines (63 loc) • 3.11 kB
TypeScript
/** Link */
export declare const COLOR_LINK = "#0B93ff";
export declare const COLOR_LINK_HOVER = "#33aaff";
export declare const COLOR_LINK_ACTIVE = "#0070d9";
export declare const COLOR_LINK_DISABLED = "rgba(0, 0, 0, 0.25)";
/** Text */
export declare const COLOR_BODY_TEXT = "#1E2029";
export declare const COLOR_HEADING_TEXT = "rgba(0, 0, 0, 0.85)";
export declare const COLOR_CAPTION_TEXT = "rgba(0, 0, 0, 0.45)";
export declare const COLOR_BLOCKQUOTE_TEXT = "#666";
export declare const COLOR_PRE_CODE_TEXT = "#333";
/** Border */
export declare const COLOR_TABLE_BORDER = "#dfe2e5";
export declare const COLOR_TABLE_ROW_BORDER = "#c6cbd1";
export declare const COLOR_BLOCKQUOTE_BORDER = "#eee";
/** Background */
export declare const COLOR_CODE_BG = "#f8f8fa";
export declare const COLOR_TABLE_ROW_BG = "#fff";
export declare const COLOR_TABLE_ROW_ALT_BG = "#f6f8fa";
export declare const COLOR_MARK_BG = "#feffe6";
export declare const COLOR_DARK_BG = "#202226";
export declare const COLOR_TABULAR_TD_BG = "#fff";
export declare const COLOR_TABULAR_TD_BORDER = "#000";
export declare const COLOR_DARK_TABULAR_TD_BORDER = "#fff";
/** Math error */
export declare const COLOR_MATH_ERROR_BG = "yellow";
export declare const COLOR_MATH_ERROR_TEXT = "red";
/** Syntax highlighting (highlight.js) */
export declare const HLJS_COMMENT = "#998";
export declare const HLJS_COMMAND = "#005cc5";
export declare const HLJS_KEYWORD = "#d73a49";
export declare const HLJS_STRING = "#24292e";
export declare const HLJS_TITLE = "#6f42c1";
export declare const HLJS_TYPE = "#458";
export declare const HLJS_TAG = "#000080";
export declare const HLJS_REGEXP = "#009926";
export declare const HLJS_SYMBOL = "#990073";
export declare const HLJS_META = "#999";
export declare const HLJS_META_STRING = "#032f62";
export declare const HLJS_DELETION_BG = "#fdd";
export declare const HLJS_ADDITION_BG = "#dfd";
/** TOC */
export declare const COLOR_TOC_SUBTITLE = "#979797";
export declare const COLOR_TOC_LINK = "#000";
export declare const COLOR_TOC_LINK_HOVER = "#0093FF";
export declare const COLOR_TOC_LINK_ACTIVE = "#047DD6";
/** Context menu */
export declare const COLOR_MENU_BORDER = "#E5E6EB";
export declare const COLOR_MENU_SHADOW = "#808080";
export declare const COLOR_MENU_ITEM_ACTIVE_BG = "#e1e0e5";
export declare const COLOR_MENU_ITEM_VALUE = "#7d829c";
export declare const COLOR_MENU_OVERLAY = "rgba(0, 0, 0, 0.56)";
export declare const COLOR_DARK_MENU_TITLE = "#ebefe7";
export declare const COLOR_DARK_MENU_BG = "#33363a";
/** Clipboard */
export declare const COLOR_CLIPBOARD_TEXT = "rgb(36, 41, 47)";
export declare const COLOR_CLIPBOARD_BG = "rgb(246, 248, 250)";
export declare const COLOR_CLIPBOARD_BORDER = "rgba(31, 35, 40, 0.15)";
export declare const COLOR_CLIPBOARD_SHADOW = "rgba(31, 35, 40, 0.04)";
export declare const COLOR_CLIPBOARD_SHADOW_INSET = "rgba(255, 255, 255, 0.25)";
export declare const COLOR_CLIPBOARD_HOVER_BG = "rgb(243, 244, 246)";
export declare const COLOR_CLIPBOARD_COPY_ICON = "rgb(101, 109, 118)";
export declare const COLOR_CLIPBOARD_CHECK_ICON = "rgb(26, 127, 55)";