mathpix-markdown-it 1.0.98 → 1.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare const codeStyles = "\n #preview-content code, #setText code {\n font-family: Inconsolata;\n font-size: inherit;\n display: initial;\n background: #f8f8fa;\n }\n #preview-content pre code, #setText pre code {\n font-size: inherit;\n display: block;\n color: #333;\n overflow-x: auto;\n font-size: 15px;\n }\n\n .hljs-comment,\n .hljs-quote {\n color: #998;\n font-style: italic;\n }\n\n .hljs-command {\n color: #005cc5;\n }\n\n .hljs-keyword,\n .hljs-selector-tag,\n .hljs-subst {\n color: #d73a49;\n font-weight: bold;\n }\n\n .hljs-number,\n .hljs-literal,\n .hljs-variable,\n .hljs-template-variable,\n .hljs-tag .hljs-attr {\n color: #005cc5;\n }\n\n .hljs-string,\n .hljs-doctag {\n color: #24292e;\n }\n\n .hljs-title,\n .hljs-section,\n .hljs-selector-id {\n color: #6f42c1;\n font-weight: bold;\n }\n\n .hljs-subst {\n font-weight: normal;\n }\n\n .hljs-type,\n .hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n }\n\n .hljs-tag,\n .hljs-name,\n .hljs-attribute {\n color: #000080;\n font-weight: normal;\n }\n\n .hljs-regexp,\n .hljs-link {\n color: #009926;\n }\n\n .hljs-symbol,\n .hljs-bullet {\n color: #990073;\n }\n\n .hljs-built_in,\n .hljs-builtin-name {\n color: #24292e;\n }\n\n .hljs-meta {\n color: #999;\n font-weight: bold;\n }\n\n .hljs-meta-keyword {\n color: #d73a49;\n }\n\n .hljs-meta-string {\n color: #032f62;\n }\n\n .hljs-deletion {\n background: #fdd;\n }\n\n .hljs-addition {\n background: #dfd;\n }\n\n .hljs-emphasis {\n font-style: italic;\n }\n\n .hljs-strong {\n font-weight: bold;\n }\n";
1
+ export declare const codeStyles = "\n #preview-content code, #setText code {\n font-family: Inconsolata;\n font-size: inherit;\n display: initial;\n background: #f8f8fa;\n }\n #preview-content pre code, #setText pre code {\n font-family: 'DM Mono', Inconsolata, monospace;\n display: block;\n color: #333;\n overflow-x: auto;\n font-size: 15px;\n line-height: 24px;\n }\n\n .hljs-comment,\n .hljs-quote {\n color: #998;\n font-style: italic;\n }\n\n .hljs-command {\n color: #005cc5;\n }\n\n .hljs-keyword,\n .hljs-selector-tag,\n .hljs-subst {\n color: #d73a49;\n font-weight: bold;\n }\n\n .hljs-number,\n .hljs-literal,\n .hljs-variable,\n .hljs-template-variable,\n .hljs-tag .hljs-attr {\n color: #005cc5;\n }\n\n .hljs-string,\n .hljs-doctag {\n color: #24292e;\n }\n\n .hljs-title,\n .hljs-section,\n .hljs-selector-id {\n color: #6f42c1;\n font-weight: bold;\n }\n\n .hljs-subst {\n font-weight: normal;\n }\n\n .hljs-type,\n .hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n }\n\n .hljs-tag,\n .hljs-name,\n .hljs-attribute {\n color: #000080;\n font-weight: normal;\n }\n\n .hljs-regexp,\n .hljs-link {\n color: #009926;\n }\n\n .hljs-symbol,\n .hljs-bullet {\n color: #990073;\n }\n\n .hljs-built_in,\n .hljs-builtin-name {\n color: #24292e;\n }\n\n .hljs-meta {\n color: #999;\n font-weight: bold;\n }\n\n .hljs-meta-keyword {\n color: #d73a49;\n }\n\n .hljs-meta-string {\n color: #032f62;\n }\n\n .hljs-deletion {\n background: #fdd;\n }\n\n .hljs-addition {\n background: #dfd;\n }\n\n .hljs-emphasis {\n font-style: italic;\n }\n\n .hljs-strong {\n font-weight: bold;\n }\n";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.codeStyles = void 0;
4
- exports.codeStyles = "\n #preview-content code, #setText code {\n font-family: Inconsolata;\n font-size: inherit;\n display: initial;\n background: #f8f8fa;\n }\n #preview-content pre code, #setText pre code {\n font-size: inherit;\n display: block;\n color: #333;\n overflow-x: auto;\n font-size: 15px;\n }\n\n .hljs-comment,\n .hljs-quote {\n color: #998;\n font-style: italic;\n }\n\n .hljs-command {\n color: #005cc5;\n }\n\n .hljs-keyword,\n .hljs-selector-tag,\n .hljs-subst {\n color: #d73a49;\n font-weight: bold;\n }\n\n .hljs-number,\n .hljs-literal,\n .hljs-variable,\n .hljs-template-variable,\n .hljs-tag .hljs-attr {\n color: #005cc5;\n }\n\n .hljs-string,\n .hljs-doctag {\n color: #24292e;\n }\n\n .hljs-title,\n .hljs-section,\n .hljs-selector-id {\n color: #6f42c1;\n font-weight: bold;\n }\n\n .hljs-subst {\n font-weight: normal;\n }\n\n .hljs-type,\n .hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n }\n\n .hljs-tag,\n .hljs-name,\n .hljs-attribute {\n color: #000080;\n font-weight: normal;\n }\n\n .hljs-regexp,\n .hljs-link {\n color: #009926;\n }\n\n .hljs-symbol,\n .hljs-bullet {\n color: #990073;\n }\n\n .hljs-built_in,\n .hljs-builtin-name {\n color: #24292e;\n }\n\n .hljs-meta {\n color: #999;\n font-weight: bold;\n }\n\n .hljs-meta-keyword {\n color: #d73a49;\n }\n\n .hljs-meta-string {\n color: #032f62;\n }\n\n .hljs-deletion {\n background: #fdd;\n }\n\n .hljs-addition {\n background: #dfd;\n }\n\n .hljs-emphasis {\n font-style: italic;\n }\n\n .hljs-strong {\n font-weight: bold;\n }\n";
4
+ exports.codeStyles = "\n #preview-content code, #setText code {\n font-family: Inconsolata;\n font-size: inherit;\n display: initial;\n background: #f8f8fa;\n }\n #preview-content pre code, #setText pre code {\n font-family: 'DM Mono', Inconsolata, monospace;\n display: block;\n color: #333;\n overflow-x: auto;\n font-size: 15px;\n line-height: 24px;\n }\n\n .hljs-comment,\n .hljs-quote {\n color: #998;\n font-style: italic;\n }\n\n .hljs-command {\n color: #005cc5;\n }\n\n .hljs-keyword,\n .hljs-selector-tag,\n .hljs-subst {\n color: #d73a49;\n font-weight: bold;\n }\n\n .hljs-number,\n .hljs-literal,\n .hljs-variable,\n .hljs-template-variable,\n .hljs-tag .hljs-attr {\n color: #005cc5;\n }\n\n .hljs-string,\n .hljs-doctag {\n color: #24292e;\n }\n\n .hljs-title,\n .hljs-section,\n .hljs-selector-id {\n color: #6f42c1;\n font-weight: bold;\n }\n\n .hljs-subst {\n font-weight: normal;\n }\n\n .hljs-type,\n .hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n }\n\n .hljs-tag,\n .hljs-name,\n .hljs-attribute {\n color: #000080;\n font-weight: normal;\n }\n\n .hljs-regexp,\n .hljs-link {\n color: #009926;\n }\n\n .hljs-symbol,\n .hljs-bullet {\n color: #990073;\n }\n\n .hljs-built_in,\n .hljs-builtin-name {\n color: #24292e;\n }\n\n .hljs-meta {\n color: #999;\n font-weight: bold;\n }\n\n .hljs-meta-keyword {\n color: #d73a49;\n }\n\n .hljs-meta-string {\n color: #032f62;\n }\n\n .hljs-deletion {\n background: #fdd;\n }\n\n .hljs-addition {\n background: #dfd;\n }\n\n .hljs-emphasis {\n font-style: italic;\n }\n\n .hljs-strong {\n font-weight: bold;\n }\n";
5
5
  //# sourceMappingURL=styles-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles-code.js","sourceRoot":"","sources":["../../src/styles/styles-code.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,y0DAgHzB,CAAC"}
1
+ {"version":3,"file":"styles-code.js","sourceRoot":"","sources":["../../src/styles/styles-code.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,+3DAiHzB,CAAC"}
@@ -1 +1 @@
1
- export declare const fontsStyles = "\n @import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,500');\n @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');\n @import url('https://fonts.googleapis.com/css?family=Inconsolata');\n @import url('https://cdn.mathpix.com/fonts/cmu.css');\n";
1
+ export declare const fontsStyles = "\n @import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,500');\n @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');\n @import url('https://fonts.googleapis.com/css?family=Inconsolata');\n @import url('https://cdn.mathpix.com/fonts/cmu.css');\n @import url('https://fonts.googleapis.com/css2?family=DM+Mono&display=swap');\n";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fontsStyles = void 0;
4
- exports.fontsStyles = "\n @import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,500');\n @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');\n @import url('https://fonts.googleapis.com/css?family=Inconsolata');\n @import url('https://cdn.mathpix.com/fonts/cmu.css');\n";
4
+ exports.fontsStyles = "\n @import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,500');\n @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');\n @import url('https://fonts.googleapis.com/css?family=Inconsolata');\n @import url('https://cdn.mathpix.com/fonts/cmu.css');\n @import url('https://fonts.googleapis.com/css2?family=DM+Mono&display=swap');\n";
5
5
  //# sourceMappingURL=styles-fonts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles-fonts.js","sourceRoot":"","sources":["../../src/styles/styles-fonts.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,gUAK1B,CAAC"}
1
+ {"version":3,"file":"styles-fonts.js","sourceRoot":"","sources":["../../src/styles/styles-fonts.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,uZAM1B,CAAC"}
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tabularStyles = void 0;
4
4
  exports.tabularStyles = function (useColors) {
5
5
  if (useColors === void 0) { useColors = true; }
6
- return "\n .table_tabular table th, .table_tabular table th {\n border: none !important;\n padding: 6px 13px;\n }\n \n #tabular tr, #tabular tr {\n border-top: none !important;\n border-bottom: none !important;\n }\n #tabular td, #tabular td {\n border-style: none !important;\n " + (useColors ? 'background-color: #fff;' : 'background-color: transparent;') + "\n " + (useColors ? 'border-color: #000 !important;' : 'border-color: currentColor !important;') + "\n word-break: keep-all;\n padding: 0.1em 0.5em !important;\n }\n #tabular {\n display: inline !important;\n }\n #tabular td > p {\n margin-bottom: 0;\n margin-top: 0;\n }\n #tabular td._empty {\n height: 1.3em;\n }\n #tabular td .f {\n opacity: 0;\n }\n \n html[data-theme=\"dark\"] #tabular tr, html[data-theme=\"dark\"] #tabular td {\n " + (useColors ? 'background-color: #202226;' : 'background-color: transparent;') + "\n " + (useColors ? 'border-color: #fff !important;' : 'border-color: currentColor !important;') + "\n } \n .table_tabular {\n overflow-x: auto;\n padding: 0 2px 0.5em 2px;\n }\n .figure_img {\n margin-bottom: 0.5em;\n overflow-x: auto;\n }\n";
6
+ return "\n .table_tabular table th, .table_tabular table th {\n border: none !important;\n padding: 6px 13px;\n }\n \n #tabular tr, #tabular tr {\n border-top: none !important;\n border-bottom: none !important;\n }\n #tabular td, #tabular td {\n border-style: none !important;\n " + (useColors ? 'background-color: #fff;' : 'background-color: transparent;') + "\n " + (useColors ? 'border-color: #000 !important;' : 'border-color: currentColor !important;') + "\n word-break: keep-all;\n padding: 0.1em 0.5em !important;\n }\n #tabular {\n display: inline-block !important;\n }\n #tabular td > p {\n margin-bottom: 0;\n margin-top: 0;\n }\n #tabular td._empty {\n height: 1.3em;\n }\n #tabular td .f {\n opacity: 0;\n }\n \n html[data-theme=\"dark\"] #tabular tr, html[data-theme=\"dark\"] #tabular td {\n " + (useColors ? 'background-color: #202226;' : 'background-color: transparent;') + "\n " + (useColors ? 'border-color: #fff !important;' : 'border-color: currentColor !important;') + "\n } \n .table_tabular {\n overflow-x: auto;\n padding: 0 2px 0.5em 2px;\n }\n .figure_img {\n margin-bottom: 0.5em;\n overflow-x: auto;\n }\n";
7
7
  };
8
8
  //# sourceMappingURL=styles-tabular.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles-tabular.js","sourceRoot":"","sources":["../../src/styles/styles-tabular.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,UAAC,SAAgB;IAAhB,0BAAA,EAAA,gBAAgB;IAAK,OAAA,oVAYzC,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,gCAAgC,oBACxE,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,wCAAwC,gbAmBzF,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,gCAAgC,kBAC3E,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,wCAAwC,8LAU9F;AA3CkD,CA2ClD,CAAC"}
1
+ {"version":3,"file":"styles-tabular.js","sourceRoot":"","sources":["../../src/styles/styles-tabular.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,UAAC,SAAgB;IAAhB,0BAAA,EAAA,gBAAgB;IAAK,OAAA,oVAYzC,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,gCAAgC,oBACxE,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,wCAAwC,sbAmBzF,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,gCAAgC,kBAC3E,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,wCAAwC,8LAU9F;AA3CkD,CA2ClD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mathpix-markdown-it",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "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)",
5
5
  "keywords": [
6
6
  "MathJax",