mathpix-markdown-it 1.0.68 → 1.0.69
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.
- package/es5/bundle.js +4 -4
- package/es5/index.js +3 -3
- package/lib/markdown/index.js +4 -2
- package/lib/markdown/index.js.map +1 -1
- package/lib/markdown/mathpix-markdown-plugins.js +2 -2
- package/lib/markdown/mathpix-markdown-plugins.js.map +1 -1
- package/lib/markdown/mdPluginTOC.js +111 -1
- package/lib/markdown/mdPluginTOC.js.map +1 -1
- package/lib/markdown/rules.js +6 -6
- package/lib/markdown/rules.js.map +1 -1
- package/lib/mathjax/mathJaxConfig.d.ts +2 -0
- package/lib/mathjax/mathJaxConfig.js +2 -0
- package/lib/mathjax/mathJaxConfig.js.map +1 -1
- package/lib/mathpix-markdown-model/index.d.ts +15 -4
- package/lib/mathpix-markdown-model/index.js +24 -11
- package/lib/mathpix-markdown-model/index.js.map +1 -1
- package/lib/styles/halpers.d.ts +1 -0
- package/lib/styles/halpers.js +12 -0
- package/lib/styles/halpers.js.map +1 -0
- package/lib/styles/index.d.ts +1 -1
- package/lib/styles/index.js +3 -2
- package/lib/styles/index.js.map +1 -1
- package/lib/yaml-parser/index.d.ts +1 -0
- package/lib/yaml-parser/index.js +10 -3
- package/lib/yaml-parser/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMaxWidthStyle = void 0;
|
|
4
|
+
exports.getMaxWidthStyle = function (maxWidth, isHideScroll) {
|
|
5
|
+
if (maxWidth === void 0) { maxWidth = ''; }
|
|
6
|
+
if (isHideScroll === void 0) { isHideScroll = false; }
|
|
7
|
+
if (!maxWidth) {
|
|
8
|
+
return '';
|
|
9
|
+
}
|
|
10
|
+
return "\n #setText {\n " + ('max-width:' + maxWidth + ';') + "\n }\n #setText > div {\n overflow-x: auto; \n -webkit-overflow-scrolling: touch;\n }\n \n .math-block {\n min-width: unset;\n overflow-x: auto; \n -webkit-overflow-scrolling: touch;\n }\n \n " + (isHideScroll ? '#setText > div::-webkit-scrollbar { display: none; }' : '') + "\n \n " + (isHideScroll ? '#setText > blockquote::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '#setText > h1::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '#setText > h2::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '#setText > h3::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '#setText > h4::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '#setText > h5::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '#setText > h6::-webkit-scrollbar { display: none; }' : '') + "\n \n " + (isHideScroll ? '.table_tabular::-webkit-scrollbar { display: none; }' : '') + "\n \n " + (isHideScroll ? 'mjx-container::-webkit-scrollbar { display: none; }' : '') + "\n \n mjx-container[jax=\"SVG\"] > svg { \n overflow-x: auto; \n }\n \n " + (isHideScroll ? 'mjx-container[jax="SVG"] > svg::-webkit-scrollbar { display: none; }' : '') + "\n \n .smiles-inline, .smiles {\n " + ('max-width:' + maxWidth + ';') + "\n overflow-x: auto;\n }\n \n " + (isHideScroll ? '.smiles::-webkit-scrollbar { display: none; }' : '') + "\n " + (isHideScroll ? '.smiles-inline::-webkit-scrollbar { display: none; }' : '') + "\n ";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=halpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halpers.js","sourceRoot":"","sources":["../../src/styles/halpers.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,UAAC,QAAqB,EAAE,YAAoB;IAA3C,yBAAA,EAAA,aAAqB;IAAE,6BAAA,EAAA,oBAAoB;IAC1E,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,EAAE,CAAA;KACV;IACD,OAAO,8BAED,YAAY,GAAG,QAAQ,GAAG,GAAG,2PAa/B,YAAY,CAAC,CAAC,CAAC,uDAAuD,CAAC,CAAC,CAAC,EAAE,sBAE3E,YAAY,CAAC,CAAC,CAAC,8DAA8D,CAAC,CAAC,CAAC,EAAE,gBAClF,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,gBAC1E,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,gBAC1E,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,gBAC1E,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,gBAC1E,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,gBAC1E,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,sBAE1E,YAAY,CAAC,CAAC,CAAC,uDAAuD,CAAC,CAAC,CAAC,EAAE,0BAE3E,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,sGAM1E,YAAY,CAAC,CAAC,CAAC,uEAAuE,CAAC,CAAC,CAAC,EAAE,uDAGzF,YAAY,GAAG,QAAQ,GAAG,GAAG,sDAI/B,YAAY,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,gBACpE,YAAY,CAAC,CAAC,CAAC,uDAAuD,CAAC,CAAC,CAAC,EAAE,UAC9E,CAAA;AACH,CAAC,CAAC"}
|
package/lib/styles/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const resetBodyStyles = "\n body {\n margin: 0;\n line-height: normal;\n }\n";
|
|
2
|
-
export declare const MathpixStyle: (setTextAlignJustify?: boolean, useColors?: boolean, maxWidth?: string) => string;
|
|
2
|
+
export declare const MathpixStyle: (setTextAlignJustify?: boolean, useColors?: boolean, maxWidth?: string, scaleEquation?: boolean) => string;
|
|
3
3
|
export declare const PreviewStyle = "\n #preview {\n font-family: 'CMU Serif', 'Georgia', Helvetica, Arial, sans-serif;\n font-size: 17px;\n visibility: visible;\n word-break: break-word;\n padding: 2.5em;\n max-width: 800px;\n margin: auto;\n box-sizing: content-box;\n }\n\n #preview h1, #preview h2, #preview h3, #preview h4, #preview h5, #preview strong {\n font-family: 'CMU Serif Bold', 'Georgia', Helvetica, Arial, sans-serif;\n }\n\n #preview i, #preview em {\n font-family: 'CMU Serif Italic', 'Georgia', Helvetica, Arial, sans-serif;\n }\n";
|
|
4
4
|
export declare const TocStyle: (containerName?: string) => string;
|
package/lib/styles/index.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TocStyle = exports.PreviewStyle = exports.MathpixStyle = exports.resetBodyStyles = void 0;
|
|
4
4
|
exports.resetBodyStyles = "\n body {\n margin: 0;\n line-height: normal;\n }\n";
|
|
5
|
-
exports.MathpixStyle = function (setTextAlignJustify, useColors, maxWidth) {
|
|
5
|
+
exports.MathpixStyle = function (setTextAlignJustify, useColors, maxWidth, scaleEquation) {
|
|
6
6
|
if (setTextAlignJustify === void 0) { setTextAlignJustify = true; }
|
|
7
7
|
if (useColors === void 0) { useColors = true; }
|
|
8
8
|
if (maxWidth === void 0) { maxWidth = ''; }
|
|
9
|
-
|
|
9
|
+
if (scaleEquation === void 0) { scaleEquation = true; }
|
|
10
|
+
return "\n #setText > div {\n justify-content: inherit;\n margin-top: 0;\n margin-bottom: 1em;\n " + (setTextAlignJustify ? 'text-align: justify;' : '') + "\n " + (maxWidth ? 'overflow-x: auto;' : '') + "\n }\n \n " + (maxWidth ? '#setText > blockquote, h1, h2, h3, h4, h5, h6 { overflow-x: auto; }' : '') + "\n \n #setText div:last-child {\n margin-bottom: 0 !important;\n }\n\n #setText > br, #preview-content br {\n line-height: 1.2;\n }\n\n #preview-content > div {\n margin-top: 0;\n margin-bottom: 1em;\n " + (setTextAlignJustify ? 'text-align: justify;' : '') + "\n }\n\n #preview-content table {\n margin-bottom: 1em;\n }\n\n #setText table {\n margin-bottom: 1em;\n }\n\n mjx-container {\n text-indent: 0;\n overflow-y: visible !important;\n padding-top: 1px;\n padding-bottom: 1px;\n " + (maxWidth ? 'max-width:' + maxWidth + ';' : '') + "\n " + (maxWidth ? 'overflow-x: auto;' : '') + "\n }\n \n " + (maxWidth ? 'mjx-container[jax="SVG"] > svg { overflow-x: auto; }' : '') + "\n \n .math-inline mjx-container {\n display: inline-block !important;\n page-break-inside: avoid;\n }\n .math-block {\n align-items: center;\n min-width: min-content;\n page-break-after: auto;\n page-break-inside: avoid;\n margin-top: 1em;\n margin-bottom: 1em;\n }\n .math-block p {\n flex-shrink: 1;\n }\n .math-block mjx-container {\n margin: 0 !important;\n }\n .math-error {\n background-color: yellow;\n color: red;\n }\n\n " + (scaleEquation ? '#preview-content svg, #setText svg { min-width: initial !important;}' : '') + "\n\n #preview-content img, #setText img {\n max-width: 100%;\n }\n \n #preview-content blockquote, #setText blockquote {\n page-break-inside: avoid;\n " + (useColors ? 'color: #666;' : '') + "\n margin: 0 0 1em 0;\n padding-left: 3em;\n border-left: .5em solid #eee;\n }\n\n #preview-content pre, #setText pre {\n border: 1px solid #ccc;\n page-break-inside: avoid;\n padding: 0.5em;\n " + (useColors ? 'background: #f8f8fa;' : '') + "\n }\n .empty {\n text-align: center;\n font-size: 18px;\n padding: 50px 0 !important;\n }\n\n #setText table, #preview-content table {\n display: block; \n overflow: auto;\n width: 100%;\n border-collapse: collapse;\n page-break-inside: avoid;\n }\n \n #setText table th, #preview-content table th {\n text-align: center;\n font-weight: bold;\n }\n \n #setText table td, #preview-content table td,\n #setText table th, #preview-content table th {\n border: 1px solid #dfe2e5;\n padding: 6px 13px;\n }\n \n #setText table tr, #preview-content table tr {\n " + (useColors ? 'background-color: #fff;' : '') + "\n border-top: 1px solid " + (useColors ? '#c6cbd1' : 'currentColor') + ";\n }\n \n #setText table tr:nth-child(2n), #preview-content table tr:nth-child(2n) {\n " + (useColors ? 'background-color: #f6f8fa;' : '') + "\n }\n\n \n #setText .main-title, #setText .author, #preview-content .main-title, #preview-content .author {\n text-align: center;\n margin: 0 auto;\n }\n \n #preview-content .main-title, #setText .main-title {\n line-height: 1.2;\n margin-bottom: 1em;\n }\n\n #preview-content .author, #setText .author {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n #preview-content .author p, #setText .author p {\n min-width: 30%;\n max-width: 50%;\n padding: 0 7px;\n }\n\n #preview-content .author > p > span, #setText .author > p > span {\n display: block;\n text-align: center;\n }\n\n #preview-content .section-title, #setText .section-title {\n margin-top: 1.5em;\n }\n\n #preview-content .abstract, #setText .abstract {\n text-align: justify;\n margin-bottom: 1em;\n }\n\n #preview-content .abstract p, #setText .abstract p {\n margin-bottom: 0;\n }\n\n @media print {\n\n #preview {\n font-size: 10pt!important;\n }\n\n svg {\n shape-rendering: crispEdges;\n }\n\n .math-block svg, math-inline svg {\n margin-top: 1px;\n }\n\n #preview-content img, #setText img {\n display: block;\n }\n \n #preview-content .figure_img img, #setText .figure_img img {\n display: inline;\n }\n\n .preview-right {\n word-break: break-word;\n }\n\n #preview-content h1, #setText h1 {\n page-break-inside: avoid;\n position: relative;\n border: 2px solid transparent;\n }\n \n #preview-content h1::after, #setText h1::after {\n content: \"\";\n display: block;\n height: 100px;\n margin-bottom: -100px;\n position: relative;\n }\n \n #preview-content h2, #setText h2 {\n page-break-inside: avoid;\n position: relative;\n border: 2px solid transparent;\n }\n \n #preview-content h2::after, #setText h2::after {\n content: \"\";\n display: block;\n height: 100px;\n margin-bottom: -100px;\n position: relative;\n }\n \n #preview-content h3, #setText h3 {\n page-break-inside: avoid;\n position: relative;\n border: 2px solid transparent;\n }\n \n #preview-content h3::after, #setText h3::after {\n content: \"\";\n display: block;\n height: 100px;\n margin-bottom: -100px;\n position: relative;\n }\n \n #preview-content h4, #setText h4 {\n page-break-inside: avoid;\n position: relative;\n border: 2px solid transparent;\n }\n \n #preview-content h4::after, #setText h4::after {\n content: \"\";\n display: block;\n height: 100px;\n margin-bottom: -100px;\n position: relative;\n }\n \n #preview-content h5, #setText h5 {\n page-break-inside: avoid;\n position: relative;\n border: 2px solid transparent;\n }\n \n #preview-content h5::after, #setText h5::after {\n content: \"\";\n display: block;\n height: 100px;\n margin-bottom: -100px;\n position: relative;\n }\n \n #preview-content h6, #setText h6 {\n page-break-inside: avoid;\n position: relative;\n border: 2px solid transparent;\n }\n \n #preview-content h6::after, #setText h6::after {\n content: \"\";\n display: block;\n height: 100px;\n margin-bottom: -100px;\n position: relative;\n }\n }\n #preview-content sup, #setText sup {\n top: -.5em;\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n }\n \n #preview-content .text-url, #setText .text-url {\n " + (useColors ? 'color: #0B93ff;' : '') + "\n cursor: text;\n pointer-events: none;\n }\n \n #preview-content .text-url a:hover, #setText .text-url a:hover {\n " + (useColors ? 'color: #0B93ff;' : '') + "\n }\n";
|
|
10
11
|
};
|
|
11
12
|
exports.PreviewStyle = "\n #preview {\n font-family: 'CMU Serif', 'Georgia', Helvetica, Arial, sans-serif;\n font-size: 17px;\n visibility: visible;\n word-break: break-word;\n padding: 2.5em;\n max-width: 800px;\n margin: auto;\n box-sizing: content-box;\n }\n\n #preview h1, #preview h2, #preview h3, #preview h4, #preview h5, #preview strong {\n font-family: 'CMU Serif Bold', 'Georgia', Helvetica, Arial, sans-serif;\n }\n\n #preview i, #preview em {\n font-family: 'CMU Serif Italic', 'Georgia', Helvetica, Arial, sans-serif;\n }\n";
|
|
12
13
|
exports.TocStyle = function (containerName) {
|
package/lib/styles/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,6DAK9B,CAAC;AACW,QAAA,YAAY,GAAG,UAAC,mBAAmC,EAAE,SAAyB,EAAE,Q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BAAiB,CAAC,CAAC,CAAC,EAAE,uJAMlC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,eAEzC,CAAA;AAAA,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,wiBAmB3B,CAAC;AAEW,QAAA,QAAQ,GAAG,UAAC,aAA6B;IAA7B,8BAAA,EAAA,qBAA6B;IAAK,OAAA,UACtD,aAAa,2sCAoDjB;AArD0D,CAqD1D,CAAC"}
|
package/lib/yaml-parser/index.js
CHANGED
|
@@ -14,7 +14,8 @@ exports.yamlParser = function (text, isAddYamlToHtml) {
|
|
|
14
14
|
var YAMKL_FILE_END = /(\r|\n)-+/;
|
|
15
15
|
var result = {
|
|
16
16
|
content: text,
|
|
17
|
-
metadata: null
|
|
17
|
+
metadata: null,
|
|
18
|
+
contentStartLine: 0
|
|
18
19
|
};
|
|
19
20
|
try {
|
|
20
21
|
if (YAML_START.test(text)) {
|
|
@@ -25,7 +26,8 @@ exports.yamlParser = function (text, isAddYamlToHtml) {
|
|
|
25
26
|
var content = text.substring(endIndex);
|
|
26
27
|
result = {
|
|
27
28
|
metadata: metadata,
|
|
28
|
-
content: content.trim()
|
|
29
|
+
content: content.trim(),
|
|
30
|
+
contentStartLine: 0
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
if (!result.metadata) {
|
|
@@ -34,13 +36,18 @@ exports.yamlParser = function (text, isAddYamlToHtml) {
|
|
|
34
36
|
var metadata = text.substring(0, match_1.index);
|
|
35
37
|
result = {
|
|
36
38
|
metadata: metadata,
|
|
37
|
-
content: ''
|
|
39
|
+
content: '',
|
|
40
|
+
contentStartLine: 0
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
if (result.metadata) {
|
|
42
45
|
result = tslib_1.__assign(tslib_1.__assign({}, result), { metadata: result.metadata.replace(YAML_START, '').trim() });
|
|
43
46
|
}
|
|
47
|
+
if (result.metadata) {
|
|
48
|
+
var arr = result.metadata.split('\n');
|
|
49
|
+
result.contentStartLine = arr.length + 3;
|
|
50
|
+
}
|
|
44
51
|
if (result.metadata) {
|
|
45
52
|
var parseResult = null;
|
|
46
53
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/yaml-parser/index.ts"],"names":[],"mappings":";;;;AAAA,8BAAgC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/yaml-parser/index.ts"],"names":[],"mappings":";;;;AAAA,8BAAgC;AASnB,QAAA,UAAU,GAAG,UAAC,IAAY,EAAE,eAAuB;IAAvB,gCAAA,EAAA,uBAAuB;IAC9D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAA;KAC9D;IACD,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAEnB,IAAM,UAAU,GAAG,YAAY,CAAC;IAChC,IAAM,QAAQ,GAAG,kBAAkB,CAAC;IACpC,IAAM,cAAc,GAAG,WAAW,CAAC;IAEnC,IAAI,MAAM,GAAsB;QAC9B,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,gBAAgB,EAAE,CAAC;KACpB,CAAC;IAEF,IAAI;QACF,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACzB,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAEjC,IAAI,KAAK,EAAE;gBACT,IAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;gBAC/C,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAEhD,IAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAEzC,MAAM,GAAG;oBACP,QAAQ,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,QAAQ,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE;wBACzD,QAAQ,GAAG,aAAW,MAAM,CAAC,QAAQ,CAAC,KAAK,MAAG,CAAC;wBAC/C,QAAQ,IAAI,MAAM,CAAE;qBACrB;oBAED,MAAM,CAAC,OAAO,GAAG,WAAS,GAAG,MAAM,CAAC,OAAO,CAAC;oBAC5C,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;iBAC5C;aACF;SAEF;QAGD,OAAO,MAAM,CAAA;KACd;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,MAAM,CAAC,KAAK,GAAG,yBAAyB,CAAC;QACzC,OAAO,MAAM,CAAA;KACd;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mathpix-markdown-it",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
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",
|