@diplodoc/transform 4.73.3 → 4.74.0
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/dist/css/_yfm-only.css.map +1 -1
- package/dist/css/_yfm-only.min.css.map +1 -1
- package/dist/css/base.css.map +1 -1
- package/dist/css/base.min.css.map +1 -1
- package/dist/css/print.css.map +1 -1
- package/dist/css/yfm.css +14 -15
- package/dist/css/yfm.css.map +3 -3
- package/dist/css/yfm.min.css +1 -1
- package/dist/css/yfm.min.css.map +3 -3
- package/dist/js/yfm.js +111 -99
- package/dist/js/yfm.js.map +3 -3
- package/dist/js/yfm.min.js +1 -1
- package/dist/js/yfm.min.js.map +3 -3
- package/lib/md.js +3 -1
- package/lib/md.js.map +1 -1
- package/lib/plugins/code.js +9 -3
- package/lib/plugins/code.js.map +1 -1
- package/lib/plugins/images/index.d.ts +2 -1
- package/lib/plugins/images/index.js +4 -3
- package/lib/plugins/images/index.js.map +1 -1
- package/lib/plugins/inline-code/index.js +4 -2
- package/lib/plugins/inline-code/index.js.map +1 -1
- package/lib/plugins/tabs.d.ts +1 -0
- package/lib/plugins/term/index.js +32 -27
- package/lib/plugins/term/index.js.map +1 -1
- package/lib/plugins/utils.d.ts +10 -1
- package/lib/plugins/utils.js +16 -3
- package/lib/plugins/utils.js.map +1 -1
- package/lib/typings.d.ts +11 -0
- package/package.json +3 -3
- package/src/transform/md.ts +3 -0
- package/src/transform/plugins/code.ts +15 -4
- package/src/transform/plugins/images/index.ts +12 -3
- package/src/transform/plugins/inline-code/index.ts +4 -3
- package/src/transform/plugins/term/index.ts +32 -27
- package/src/transform/plugins/utils.ts +15 -2
- package/src/transform/typings.ts +11 -0
package/dist/css/print.css.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/scss/print/code.scss", "../../src/scss/%3Cinput css
|
|
3
|
+
"sources": ["../../src/scss/print/code.scss", "../../src/scss/%3Cinput css wF0Quv%3E", "../../src/scss/print/common.scss", "../../src/scss/print/cut.scss", "../../src/scss/print/note.scss", "../../src/scss/print/table.scss", "../../src/scss/print/tabs.scss", "../../src/scss/print/term.scss", "../../src/scss/print/iframe.scss"],
|
|
4
4
|
"sourcesContent": ["@media print {\n .yfm {\n .yfm-code-floating-container {\n & > pre > code {\n white-space: pre-wrap;\n }\n }\n }\n}\n", "@media print {\n .yfm .yfm-code-floating-container > pre > code {\n white-space: pre-wrap;\n }\n}\n@media print {\n .yfm .yfm-page__delimeter {\n display: none;\n }\n .yfm h1[data-original-article],\n .yfm h2[data-original-article] {\n page-break-before: always;\n }\n}\n@media print {\n .yfm .yfm-cut-title {\n padding-left: 0;\n }\n .yfm .yfm-cut-title:before {\n display: none;\n }\n .yfm .yfm-cut-content {\n height: auto;\n display: block;\n padding: 5px 0 15px 30px;\n }\n}\n@media print {\n .yfm .yfm-note {\n page-break-inside: avoid;\n }\n}\n.yfm .yfm-table-container {\n position: relative;\n}\n.yfm .yfm-table-container > table {\n overflow: initial;\n position: absolute;\n top: 0;\n left: 0;\n max-width: initial;\n transform-origin: top left;\n}\n.yfm .yfm-table-container > table thead {\n display: table-row-group;\n}\n.yfm .yfm-table-container > table th,\n.yfm .yfm-table-container > table td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\n}\n\n@media print {\n .yfm .yfm-tab-list {\n display: none;\n }\n .yfm .yfm-tab-panel {\n visibility: visible;\n height: auto;\n display: block;\n }\n .yfm .yfm-tab-panel:before {\n content: attr(data-title);\n margin-bottom: -1px;\n margin-right: 20px;\n border-bottom: 2px solid transparent;\n line-height: 33px;\n font-weight: 700;\n outline: 0;\n cursor: pointer;\n }\n}\n@media print {\n .yfm .yfm-term_title {\n color: currentColor;\n border-bottom: none;\n }\n}\n@media print {\n .yfm iframe {\n display: none;\n }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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AueWZtLXBhZ2VfX2RlbGltZXRlciB7XG4gICAgICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgICB9XG5cbiAgICAgICAgaDEsXG4gICAgICAgIGgyIHtcbiAgICAgICAgICAgICZbZGF0YS1vcmlnaW5hbC1hcnRpY2xlXSB7XG4gICAgICAgICAgICAgICAgcGFnZS1icmVhay1iZWZvcmU6IGFsd2F5cztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tY3V0IHtcbiAgICAgICAgICAgICYtdGl0bGUge1xuICAgICAgICAgICAgICAgIHBhZGRpbmctbGVmdDogMDtcblxuICAgICAgICAgICAgICAgICY6YmVmb3JlIHtcbiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYtY29udGVudCB7XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiBhdXRvO1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgICAgICAgIHBhZGRpbmc6IDVweCAwIDE1cHggMzBweDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tbm90ZSB7XG4gICAgICAgICAgICBwYWdlLWJyZWFrLWluc2lkZTogYXZvaWQ7XG4gICAgICAgIH1cbiAgICB9XG59XG4iLCIueWZtIHtcbiAgICAueWZtLXRhYmxlLWNvbnRhaW5lciB7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICAgICAmID4gdGFibGUge1xuICAgICAgICAgICAgb3ZlcmZsb3c6IGluaXRpYWw7XG4gICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgbWF4LXdpZHRoOiBpbml0aWFsO1xuICAgICAgICAgICAgdHJhbnNmb3JtLW9yaWdpbjogdG9wIGxlZnQ7XG5cbiAgICAgICAgICAgIHRoZWFkIHtcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiB0YWJsZS1yb3ctZ3JvdXA7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoLFxuICAgICAgICAgICAgdGQge1xuICAgICAgICAgICAgICAgIHBhZ2UtYnJlYWstaW5zaWRlOiBhdm9pZDtcbiAgICAgICAgICAgICAgICB3aGl0ZS1zcGFjZTogcHJlLXdyYXA7XG4gICAgICAgICAgICAgICAgdGV4dC1vdmVyZmxvdzogaW5pdGlhbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tdGFiIHtcbiAgICAgICAgICAgICYtbGlzdCB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi1wYW5lbCB7XG4gICAgICAgICAgICAgICAgdmlzaWJpbGl0eTogdmlzaWJsZTtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYtcGFuZWw6YmVmb3JlIHtcbiAgICAgICAgICAgICAgICBjb250ZW50OiBhdHRyKGRhdGEtdGl0bGUpO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IC0xcHg7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAyMHB4O1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDJweCBzb2xpZCB0cmFuc3BhcmVudDtcbiAgICAgICAgICAgICAgICBsaW5lLWhlaWdodDogMzNweDtcbiAgICAgICAgICAgICAgICBmb250LXdlaWdodDogNzAwO1xuICAgICAgICAgICAgICAgIG91dGxpbmU6IDA7XG4gICAgICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuIiwiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS10ZXJtIHtcbiAgICAgICAgICAgICZfdGl0bGUge1xuICAgICAgICAgICAgICAgIGNvbG9yOiBjdXJyZW50Q29sb3I7XG4gICAgICAgICAgICAgICAgYm9yZGVyLWJvdHRvbTogbm9uZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSBpZnJhbWUge1xuICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgIH1cbn1cbiJdfQ== */", "@media print {\n .yfm {\n .yfm-page__delimeter {\n display: none;\n }\n\n h1,\n h2 {\n &[data-original-article] {\n page-break-before: always;\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-cut {\n &-title {\n padding-left: 0;\n\n &:before {\n display: none;\n }\n }\n\n &-content {\n height: auto;\n display: block;\n padding: 5px 0 15px 30px;\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-note {\n page-break-inside: avoid;\n }\n }\n}\n", ".yfm {\n .yfm-table-container {\n position: relative;\n\n & > table {\n overflow: initial;\n position: absolute;\n top: 0;\n left: 0;\n max-width: initial;\n transform-origin: top left;\n\n thead {\n display: table-row-group;\n }\n\n th,\n td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-tab {\n &-list {\n display: none;\n }\n\n &-panel {\n visibility: visible;\n height: auto;\n display: block;\n }\n\n &-panel:before {\n content: attr(data-title);\n margin-bottom: -1px;\n margin-right: 20px;\n border-bottom: 2px solid transparent;\n line-height: 33px;\n font-weight: 700;\n outline: 0;\n cursor: pointer;\n }\n }\n }\n}\n", "@media print {\n .yfm {\n .yfm-term {\n &_title {\n color: currentColor;\n border-bottom: none;\n }\n }\n }\n}\n", "@media print {\n .yfm iframe {\n display: none;\n }\n}\n"],
|
|
5
5
|
"mappings": ";AAAA,OAAA;AAGY,GAAA,IAAA,CAAA,4BAAA,EAAA,IAAA,EAAA;AACI,iBAAA;ACDd;AACF;ACJA,OAAA;AAEQ,GFCI,IEDJ,CAAA;AACI,aAAA;ADKV;ACAU,GFLA,IEKA,EAAA,CAAA;GFLA;AEMI,uBAAA;ADGd;AACF;AEbA,OAAA;AAGY,GHAA,IGAA,CAAA;AACI,kBAAA;AFad;AEXc,GHHJ,IGGI,CAHJ,aAGI;AACI,aAAA;AFalB;AETU,GHRA,IGQA,CAAA;AACI,YAAA;AACA,aAAA;AACA,aAAA,IAAA,EAAA,KAAA;AFWd;AACF;AG1BA,OAAA;AAEQ,GJCI,IIDJ,CAAA;AACI,uBAAA;AH2BV;AACF;AI9BI,CLEQ,IKFR,CAAA;AACI,YAAA;AJgCR;AI9BQ,CLDI,IKCJ,CAHJ,oBAGI,EAAA;AACI,YAAA;AAAA,YAAA;AACA,YAAA;AACA,OAAA;AACA,QAAA;AACA,aAAA;AAAA,aAAA;AACA,oBAAA,IAAA;AJgCZ;AI9BY,CLTA,IKSA,CAXR,oBAWQ,EAAA,MAAA;AACI,WAAA;AJgChB;AI7BY,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;CLbA,KKFR;AAiBY,qBAAA;AACA,eAAA;AACA,iBAAA;AJ+BhB;AKnDA,OAAA;AAGY,GNAA,IMAA,CAAA;AACI,aAAA;ALoDd;AKjDU,GNJA,IMIA,CAAA;AACI,gBAAA;AACA,YAAA;AACA,aAAA;ALmDd;AKhDU,GNVA,IMUA,CANA,aAMA;AACI,aAAA,KAAA;AACA,mBAAA;AACA,kBAAA;AACA,mBAAA,IAAA,MAAA;AACA,iBAAA;AACA,iBAAA;AACA,aAAA;AACA,YAAA;ALkDd;AACF;AMxEA,OAAA;AAGY,GPAA,IOAA,CAAA;AACI,WAAA;AACA,mBAAA;ANwEd;AACF;AO9EA,OAAA;AACI,GREQ,IQFR;AACI,aAAA;APgFN;AACF;",
|
|
6
6
|
"names": []
|
package/dist/css/yfm.css
CHANGED
|
@@ -1230,10 +1230,10 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1230
1230
|
height: 0;
|
|
1231
1231
|
}
|
|
1232
1232
|
.yfm-tab-panel:first-child {
|
|
1233
|
-
margin-top: 0
|
|
1233
|
+
margin-top: 0;
|
|
1234
1234
|
}
|
|
1235
1235
|
.yfm-tab-panel:last-child {
|
|
1236
|
-
margin-bottom: 0
|
|
1236
|
+
margin-bottom: 0;
|
|
1237
1237
|
}
|
|
1238
1238
|
.yfm-tab-panel.active {
|
|
1239
1239
|
position: relative;
|
|
@@ -1245,9 +1245,9 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1245
1245
|
position: relative;
|
|
1246
1246
|
width: 90%;
|
|
1247
1247
|
margin-bottom: 0;
|
|
1248
|
-
--yfm-tabs-dropdown-color: #
|
|
1249
|
-
--yfm-tabs-dropdown-text-color: #
|
|
1250
|
-
--yfm-tabs-dropdown-color-border: #
|
|
1248
|
+
--yfm-tabs-dropdown-color: #f2f2f2;
|
|
1249
|
+
--yfm-tabs-dropdown-text-color: #a8a8a8;
|
|
1250
|
+
--yfm-tabs-dropdown-color-border: #ccc;
|
|
1251
1251
|
}
|
|
1252
1252
|
.yfm-tabs-dropdown .yfm-tabs-dropdown-select {
|
|
1253
1253
|
padding: 10px 30px 10px 10px;
|
|
@@ -1264,7 +1264,7 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1264
1264
|
text-overflow: ellipsis;
|
|
1265
1265
|
white-space: nowrap;
|
|
1266
1266
|
overflow: hidden;
|
|
1267
|
-
z-index:
|
|
1267
|
+
z-index: 100;
|
|
1268
1268
|
}
|
|
1269
1269
|
.yfm-tabs-dropdown .yfm-tabs-dropdown-select.filled {
|
|
1270
1270
|
color: inherit;
|
|
@@ -1294,7 +1294,7 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1294
1294
|
overflow-y: scroll;
|
|
1295
1295
|
padding: 10px 0;
|
|
1296
1296
|
position: absolute;
|
|
1297
|
-
z-index:
|
|
1297
|
+
z-index: 100;
|
|
1298
1298
|
display: flex;
|
|
1299
1299
|
flex-direction: column;
|
|
1300
1300
|
border: 1px solid var(--yfm-tabs-dropdown-color-border);
|
|
@@ -1302,7 +1302,6 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1302
1302
|
background-color: var(--g-color-base-background);
|
|
1303
1303
|
transform: scaleY(0);
|
|
1304
1304
|
list-style: none;
|
|
1305
|
-
z-index: 100;
|
|
1306
1305
|
transition: transform 125ms;
|
|
1307
1306
|
transform-origin: top center;
|
|
1308
1307
|
}
|
|
@@ -1332,7 +1331,7 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1332
1331
|
color: inherit;
|
|
1333
1332
|
}
|
|
1334
1333
|
.yfm-tabs-dropdown > .yfm-tab-panel.active {
|
|
1335
|
-
border: 1px solid #
|
|
1334
|
+
border: 1px solid #f2f2f2;
|
|
1336
1335
|
transform: translateY(-30px);
|
|
1337
1336
|
border-radius: 12px;
|
|
1338
1337
|
padding: 40px 12px 16px;
|
|
@@ -1357,7 +1356,7 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1357
1356
|
display: flex;
|
|
1358
1357
|
justify-content: space-between;
|
|
1359
1358
|
gap: 10px;
|
|
1360
|
-
border-top: 1px solid #
|
|
1359
|
+
border-top: 1px solid #e5e5e5;
|
|
1361
1360
|
font-weight: 500;
|
|
1362
1361
|
scroll-margin-top: 20px;
|
|
1363
1362
|
}
|
|
@@ -1374,7 +1373,7 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1374
1373
|
align-self: center;
|
|
1375
1374
|
}
|
|
1376
1375
|
.yfm-tabs-accordion > .yfm-tab.active {
|
|
1377
|
-
border-bottom-color: transparent
|
|
1376
|
+
border-bottom-color: transparent;
|
|
1378
1377
|
font-weight: 700;
|
|
1379
1378
|
}
|
|
1380
1379
|
.yfm-tabs-accordion > .yfm-tab.active:after {
|
|
@@ -1416,8 +1415,8 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1416
1415
|
user-select: none;
|
|
1417
1416
|
}
|
|
1418
1417
|
.yfm-tabs-vertical .yfm-vertical-tab > label:before {
|
|
1419
|
-
font-family: serif
|
|
1420
|
-
font-family: initial
|
|
1418
|
+
font-family: serif;
|
|
1419
|
+
font-family: initial;
|
|
1421
1420
|
content: "";
|
|
1422
1421
|
position: absolute;
|
|
1423
1422
|
top: 0;
|
|
@@ -1442,7 +1441,7 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1442
1441
|
color: #fff;
|
|
1443
1442
|
}
|
|
1444
1443
|
.yfm-tabs-vertical .yfm-vertical-tab {
|
|
1445
|
-
border-bottom: 0
|
|
1446
|
-
border-bottom: initial
|
|
1444
|
+
border-bottom: 0;
|
|
1445
|
+
border-bottom: initial;
|
|
1447
1446
|
}
|
|
1448
1447
|
/*# sourceMappingURL=yfm.css.map */
|