@diplodoc/transform 4.31.2 → 4.31.4-beta1
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/README.md +27 -27
- package/README.ru.md +30 -27
- package/dist/css/print.css.map +2 -2
- package/dist/css/yfm.css +116 -61
- 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 +30 -34
- 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 +1 -0
- package/lib/md.js.map +1 -1
- package/package.json +5 -5
- package/src/scss/_common.scss +60 -48
- package/src/scss/_cut.scss +1 -1
- package/src/scss/_file.scss +2 -4
- package/src/scss/_highlight.scss +0 -16
- package/src/scss/_modal.scss +15 -13
- package/src/scss/_note.scss +9 -21
- package/src/scss/_term.scss +6 -9
- package/src/scss/brand.scss +48 -0
- package/src/scss/private.scss +44 -0
- package/src/transform/md.ts +1 -0
- package/src/transform/plugins/file/README.md +68 -14
- package/src/scss/_variables.scss +0 -16
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
**english** | [русский](https://github.com/yandex-cloud/yfm-transform/blob/master/README.ru.md)
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
---
|
|
3
4
|
|
|
4
5
|
[](https://www.npmjs.org/package/@diplodoc/transform)
|
|
5
6
|
|
|
@@ -11,49 +12,49 @@ Use it in your code to work with text during program execution. For example, to
|
|
|
11
12
|
|
|
12
13
|
1. Install a package:
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
```shell
|
|
16
|
+
npm i @diplodoc/transform
|
|
17
|
+
```
|
|
17
18
|
|
|
18
19
|
1. Add the package in your code using the `require()` or `import()` function:
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
```javascript
|
|
22
|
+
const transform = require('@diplodoc/transform');
|
|
23
|
+
```
|
|
23
24
|
|
|
24
25
|
1. To ensure text is displayed properly, add CSS styles and client scripts to the project:
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
```css
|
|
28
|
+
@import '~@diplodoc/transform/dist/css/yfm.css';
|
|
29
|
+
```
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
```javascript
|
|
32
|
+
import '@diplodoc/transform/dist/js/yfm';
|
|
33
|
+
```
|
|
33
34
|
|
|
34
35
|
## Usage {#use}
|
|
35
36
|
|
|
36
37
|
The package provides the `transform()` function:
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
- Input data: [Settings](settings.md) and a string with YFM.
|
|
40
|
+
- Returned value: An object with the `result` and `logs` fields.
|
|
40
41
|
|
|
41
42
|
### Result field
|
|
42
43
|
|
|
43
44
|
`result`: Resulting object, contains the fields:
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
- `html`: A line with HTML.
|
|
47
|
+
- `meta`: [Metadata](../../syntax/meta.md#meta) from the transmitted content.
|
|
48
|
+
- `title`: The document title. Returned if `extractTitle = true` or `needTitle = true`.
|
|
49
|
+
- `headings`: A list of document headers.
|
|
49
50
|
|
|
50
51
|
### Logs field
|
|
51
52
|
|
|
52
53
|
`logs`: Information about the transformation process, includes arrays:
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
- `error`: Errors.
|
|
56
|
+
- `warn`: Warnings.
|
|
57
|
+
- `info`: Additional information.
|
|
57
58
|
|
|
58
59
|
### Example of a function invocation
|
|
59
60
|
|
|
@@ -62,15 +63,14 @@ const fs = require('fs');
|
|
|
62
63
|
const transform = require('@diplodoc/transform');
|
|
63
64
|
|
|
64
65
|
const content = fs.readFileSync(filePath, 'utf');
|
|
65
|
-
const vars = {
|
|
66
|
+
const vars = {user: {name: 'Alice'}};
|
|
66
67
|
|
|
67
68
|
const {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
result: {html, meta, title, headings},
|
|
70
|
+
logs,
|
|
71
|
+
} = transform(content, {vars});
|
|
71
72
|
```
|
|
72
73
|
|
|
73
74
|
## License
|
|
74
75
|
|
|
75
76
|
MIT
|
|
76
|
-
|
package/README.ru.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
**русский** | [english](https://github.com/yandex-cloud/yfm-transform/blob/master/README.md)
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
---
|
|
3
4
|
|
|
4
5
|
[](https://www.npmjs.org/package/@diplodoc/transform)
|
|
5
6
|
|
|
@@ -11,46 +12,49 @@
|
|
|
11
12
|
|
|
12
13
|
1. Установите пакет:
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
```shell
|
|
16
|
+
npm i @diplodoc/transform
|
|
17
|
+
```
|
|
17
18
|
|
|
18
19
|
1. Подключите пакет в своем коде, используя функцию `require()` или `import()`:
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
```javascript
|
|
22
|
+
const transform = require('@diplodoc/transform');
|
|
23
|
+
```
|
|
23
24
|
|
|
24
25
|
1. Для корректного отображения подключите в проект CSS-стили и клиентские скрипты:
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
```css
|
|
28
|
+
@import '~@diplodoc/transform/dist/css/yfm.css';
|
|
29
|
+
```
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
```javascript
|
|
32
|
+
import '@diplodoc/transform/dist/js/yfm';
|
|
33
|
+
```
|
|
33
34
|
|
|
34
35
|
## Использование {#use}
|
|
35
36
|
|
|
36
37
|
Пакет предоставляет функцию `transform()`:
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
- входные данные — строка с YFM и [настройки](settings.md);
|
|
40
|
+
- возвращаемое значение — объект с полями `result` и `logs`.
|
|
39
41
|
|
|
40
42
|
### Поле result
|
|
41
43
|
|
|
42
44
|
`result` — объект результата, содержит поля:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
|
|
46
|
+
- `html` — строка с HTML.
|
|
47
|
+
- `meta` — [метаданные](../../syntax/meta.md#meta) из переданного контента.
|
|
48
|
+
- `title` — заголовок документа. Возвращается, если заданы настройки `extractTitle = true` или `needTitle = true`.
|
|
49
|
+
- `headings` — список заголовков документа.
|
|
47
50
|
|
|
48
51
|
### Поле logs
|
|
49
52
|
|
|
50
53
|
`logs` — информация о процессе трансформации, включает массивы:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
|
|
55
|
+
- `error` — ошибки.
|
|
56
|
+
- `warn` — предупреждения.
|
|
57
|
+
- `info` — дополнительная информация.
|
|
54
58
|
|
|
55
59
|
### Пример вызова функции
|
|
56
60
|
|
|
@@ -59,15 +63,14 @@ const fs = require('fs');
|
|
|
59
63
|
const transform = require('@diplodoc/transform');
|
|
60
64
|
|
|
61
65
|
const content = fs.readFileSync(filePath, 'utf');
|
|
62
|
-
const vars = {
|
|
66
|
+
const vars = {user: {name: 'Alice'}};
|
|
63
67
|
|
|
64
68
|
const {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
result: {html, meta, title, headings},
|
|
70
|
+
logs,
|
|
71
|
+
} = transform(content, {vars});
|
|
68
72
|
```
|
|
69
73
|
|
|
70
|
-
|
|
71
74
|
## License
|
|
72
75
|
|
|
73
76
|
MIT
|
package/dist/css/print.css.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/scss/
|
|
4
|
-
"sourcesContent": ["@media print {\n .yfm {\n .yfm-clipboard {\n & > pre > code {\n white-space: pre-wrap;\n }\n }\n }\n}", "@media print {\n .yfm .yfm-clipboard > 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], .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.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol {\n counter-reset: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li {\n counter-increment: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li::before {\n content: counters(cut-list, \".\") \". \";\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, .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/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3
|
+
"sources": ["../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/code.scss", "../../src/scss/%3Cinput%20css%20TrPUSH%3E", "../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/common.scss", "../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/cut.scss", "../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/note.scss", "../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/table.scss", "../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/tabs.scss", "../../src/scss/Users/v8tenko/diplodoc/packages/transform/src/scss/print/term.scss"],
|
|
4
|
+
"sourcesContent": ["@media print {\n .yfm {\n .yfm-clipboard {\n & > pre > code {\n white-space: pre-wrap;\n }\n }\n }\n}", "@media print {\n .yfm .yfm-clipboard > 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], .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.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol {\n counter-reset: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li {\n counter-increment: cut-list;\n}\n.yfm:not(.yfm_no-list-reset) .yfm-cut-content ol > li::before {\n content: counters(cut-list, \".\") \". \";\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, .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/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3Y4dGVua28vZGlwbG9kb2MvcGFja2FnZXMvdHJhbnNmb3JtL3NyYy9zY3NzIiwic291cmNlcyI6WyJwcmludC9jb2RlLnNjc3MiLCJwcmludC9jb21tb24uc2NzcyIsInByaW50L2N1dC5zY3NzIiwicHJpbnQvbm90ZS5zY3NzIiwicHJpbnQvdGFibGUuc2NzcyIsInByaW50L3RhYnMuc2NzcyIsInByaW50L3Rlcm0uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUdZO0lBQ0k7OztBQ0poQjtFQUVRO0lBQ0k7O0VBSUE7SUFDSTs7O0FDUmhCO0VBR1k7SUFDSTs7RUFFQTtJQUNJOztFQUlSO0lBQ0k7SUFDQTtJQUNBOzs7QUFPWjtFQUNJOztBQUVBO0VBQ0k7O0FBRUE7RUFDSTs7O0FDNUJoQjtFQUVRO0lBQ0k7OztBQ0ZSO0VBQ0k7O0FBRUE7RUFDSTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDSTs7QUFHSjtFQUNJO0VBQ0E7RUFDQTs7O0FDbkJoQjtFQUdZO0lBQ0k7O0VBR0o7SUFDSTtJQUNBO0lBQ0E7O0VBR0o7SUFDSTtJQUNBO0lBQ0E7SUFDQTtJQUNBO0lBQ0E7SUFDQTtJQUNBOzs7QUNyQmhCO0VBR1k7SUFDSTtJQUNBIiwic291cmNlc0NvbnRlbnQiOlsiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS1jbGlwYm9hcmQge1xuICAgICAgICAgICAgJiA+IHByZSA+IGNvZGUge1xuICAgICAgICAgICAgICAgIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iLCJAbWVkaWEgcHJpbnQge1xuICAgIC55Zm0ge1xuICAgICAgICAueWZtLXBhZ2VfX2RlbGltZXRlciB7XG4gICAgICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgICB9XG5cbiAgICAgICAgaDEsIGgyIHtcbiAgICAgICAgICAgICZbZGF0YS1vcmlnaW5hbC1hcnRpY2xlXSB7XG4gICAgICAgICAgICAgICAgcGFnZS1icmVhay1iZWZvcmU6IGFsd2F5cztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iLCJAbWVkaWEgcHJpbnQge1xuICAgIC55Zm0ge1xuICAgICAgICAueWZtLWN1dCB7XG4gICAgICAgICAgICAmLXRpdGxlIHtcbiAgICAgICAgICAgICAgICBwYWRkaW5nLWxlZnQ6IDA7XG5cbiAgICAgICAgICAgICAgICAmOmJlZm9yZSB7XG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmLWNvbnRlbnQge1xuICAgICAgICAgICAgICAgIGhlaWdodDogYXV0bztcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgICAgICAgICBwYWRkaW5nOiA1cHggMCAxNXB4IDMwcHg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi55Zm0tY3V0LWNvbnRlbnQge1xuICAgIC55Zm06bm90KC55Zm1fbm8tbGlzdC1yZXNldCkgJiBvbCB7XG4gICAgICAgIGNvdW50ZXItcmVzZXQ6IGN1dC1saXN0O1xuXG4gICAgICAgICYgPiBsaSB7XG4gICAgICAgICAgICBjb3VudGVyLWluY3JlbWVudDogY3V0LWxpc3Q7XG5cbiAgICAgICAgICAgICY6OmJlZm9yZSB7XG4gICAgICAgICAgICAgICAgY29udGVudDogY291bnRlcnMoY3V0LWxpc3QsICcuJykgJy4gJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbiIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tbm90ZSB7XG4gICAgICAgICAgICBwYWdlLWJyZWFrLWluc2lkZTogYXZvaWQ7XG4gICAgICAgIH1cbiAgICB9XG59XG4iLCIueWZtIHtcbiAgICAueWZtLXRhYmxlLWNvbnRhaW5lciB7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICAgICAmID4gdGFibGUge1xuICAgICAgICAgICAgb3ZlcmZsb3c6IGluaXRpYWw7XG4gICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgbWF4LXdpZHRoOiBpbml0aWFsO1xuICAgICAgICAgICAgdHJhbnNmb3JtLW9yaWdpbjogdG9wIGxlZnQ7XG5cbiAgICAgICAgICAgIHRoZWFkIHtcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiB0YWJsZS1yb3ctZ3JvdXA7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoLCB0ZCB7XG4gICAgICAgICAgICAgICAgcGFnZS1icmVhay1pbnNpZGU6IGF2b2lkO1xuICAgICAgICAgICAgICAgIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDtcbiAgICAgICAgICAgICAgICB0ZXh0LW92ZXJmbG93OiBpbml0aWFsO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufSIsIkBtZWRpYSBwcmludCB7XG4gICAgLnlmbSB7XG4gICAgICAgIC55Zm0tdGFiIHtcbiAgICAgICAgICAgICYtbGlzdCB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJi1wYW5lbCB7XG4gICAgICAgICAgICAgICAgdmlzaWJpbGl0eTogdmlzaWJsZTtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYtcGFuZWw6YmVmb3JlIHtcbiAgICAgICAgICAgICAgICBjb250ZW50OiBhdHRyKGRhdGEtdGl0bGUpO1xuICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IC0xcHg7XG4gICAgICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAyMHB4O1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDJweCBzb2xpZCB0cmFuc3BhcmVudDtcbiAgICAgICAgICAgICAgICBsaW5lLWhlaWdodDogMzNweDtcbiAgICAgICAgICAgICAgICBmb250LXdlaWdodDogNzAwO1xuICAgICAgICAgICAgICAgIG91dGxpbmU6IDA7XG4gICAgICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuIiwiQG1lZGlhIHByaW50IHtcbiAgICAueWZtIHtcbiAgICAgICAgLnlmbS10ZXJtIHtcbiAgICAgICAgICAgICZfdGl0bGUge1xuICAgICAgICAgICAgICAgIGNvbG9yOiBjdXJyZW50Q29sb3I7XG4gICAgICAgICAgICAgICAgYm9yZGVyLWJvdHRvbTogbm9uZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iXX0= */", "@media print {\n .yfm {\n .yfm-page__delimeter {\n display: none;\n }\n\n h1, h2 {\n &[data-original-article] {\n page-break-before: always;\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\n.yfm-cut-content {\n .yfm:not(.yfm_no-list-reset) & ol {\n counter-reset: cut-list;\n\n & > li {\n counter-increment: cut-list;\n\n &::before {\n content: counters(cut-list, '.') '. ';\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, td {\n page-break-inside: avoid;\n white-space: pre-wrap;\n text-overflow: initial;\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}"],
|
|
5
5
|
"mappings": ";AAAA,OAAA;AAGY,GAAA,IAAA,CAAA,cAAA,EAAA,IAAA,EAAA;AACI,iBAAA;ACDd;AACF;ACJA,OAAA;AAEQ,GFCI,IEDJ,CAAA;AACI,aAAA;ADKV;ACDU,GFJA,IEIA,EAAA,CAAA;EAAA,CFJA,IEIA,EAAA,CAAA;AACI,uBAAA;ADGd;AACF;AEZA,OAAA;AAGY,GHAA,IGAA,CAAA;AACI,kBAAA;AFYd;AEVc,GHHJ,IGGI,CAHJ,aAGI;AACI,aAAA;AFYlB;AERU,GHRA,IGQA,CAAA;AACI,YAAA;AACA,aAAA;AACA,aAAA,IAAA,EAAA,KAAA;AFUd;AACF;AEJI,CHlBQ,GGkBR,KAAA,CAAA,mBAAA,CAVQ,gBAUR;AACI,iBAAA;AFMR;AEJQ,CHrBI,GGqBJ,KAAA,CAHJ,mBAGI,CAbI,gBAaJ,GAAA,EAAA;AACI,qBAAA;AFMZ;AEJY,CHxBA,GGwBA,KAAA,CANR,mBAMQ,CAhBA,gBAgBA,GAAA,EAAA,EAAA;AACI,WAAA,SAAA,QAAA,EAAA,KAAA;AFMhB;AGlCA,OAAA;AAEQ,GJCI,IIDJ,CAAA;AACI,uBAAA;AHoCV;AACF;AIvCI,CLEQ,IKFR,CAAA;AACI,YAAA;AJyCR;AIvCQ,CLDI,IKCJ,CAHJ,oBAGI,EAAA;AACI,YAAA;AAAA,YAAA;AACA,YAAA;AACA,OAAA;AACA,QAAA;AACA,aAAA;AAAA,aAAA;AACA,oBAAA,IAAA;AJyCZ;AIvCY,CLTA,IKSA,CAXR,oBAWQ,EAAA,MAAA;AACI,WAAA;AJyChB;AItCY,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;AAAA,CLbA,IKaA,CAfR,oBAeQ,EAAA,MAAA;AACI,qBAAA;AACA,eAAA;AACA,iBAAA;AJwChB;AK3DA,OAAA;AAGY,GNAA,IMAA,CAAA;AACI,aAAA;AL4Dd;AKzDU,GNJA,IMIA,CAAA;AACI,gBAAA;AACA,YAAA;AACA,aAAA;AL2Dd;AKxDU,GNVA,IMUA,CANA,aAMA;AACI,aAAA,KAAA;AACA,mBAAA;AACA,kBAAA;AACA,mBAAA,IAAA,MAAA;AACA,iBAAA;AACA,iBAAA;AACA,aAAA;AACA,YAAA;AL0Dd;AACF;AMhFA,OAAA;AAGY,GPAA,IOAA,CAAA;AACI,WAAA;AACA,mBAAA;ANgFd;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|