@diplodoc/transform 4.0.0 → 4.2.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.
Files changed (44) hide show
  1. package/README.md +55 -20
  2. package/README.ru.md +57 -20
  3. package/dist/css/print.css +70 -0
  4. package/dist/css/print.css.map +7 -0
  5. package/dist/css/yfm.css +0 -18
  6. package/dist/css/yfm.css.map +3 -3
  7. package/dist/css/yfm.min.css +1 -1
  8. package/dist/css/yfm.min.css.map +3 -3
  9. package/dist/js/print.js +51 -0
  10. package/dist/js/print.js.map +7 -0
  11. package/dist/js/yfm.js +1 -1
  12. package/dist/js/yfm.js.map +2 -2
  13. package/dist/js/yfm.min.js +1 -1
  14. package/dist/js/yfm.min.js.map +2 -2
  15. package/lib/plugins/images/index.js +5 -0
  16. package/lib/plugins/images/index.js.map +1 -1
  17. package/lib/plugins/video/index.js +1 -0
  18. package/lib/plugins/video/index.js.map +1 -1
  19. package/package.json +12 -12
  20. package/src/js/print/index.ts +1 -0
  21. package/src/js/print/table.ts +62 -0
  22. package/src/scss/print/code.scss +9 -0
  23. package/src/scss/print/common.scss +13 -0
  24. package/src/scss/print/cut.scss +18 -0
  25. package/src/scss/print/note.scss +7 -0
  26. package/src/scss/print/table.scss +24 -0
  27. package/src/scss/print/tabs.scss +20 -0
  28. package/src/scss/print.scss +6 -0
  29. package/src/scss/yfm.scss +0 -1
  30. package/src/transform/index.ts +1 -1
  31. package/src/transform/plugins/images/index.ts +8 -0
  32. package/src/transform/plugins/video/index.ts +2 -0
  33. package/src/transform/yfmlint/index.ts +1 -1
  34. package/CHANGELOG.diplodoc.md +0 -38
  35. package/CHANGELOG.md +0 -404
  36. package/dist/js/code.d.ts +0 -1
  37. package/dist/js/cut.d.ts +0 -1
  38. package/dist/js/index.d.ts +0 -5
  39. package/dist/js/polyfill.d.ts +0 -1
  40. package/dist/js/tabs.d.ts +0 -1
  41. package/dist/js/term/index.d.ts +0 -1
  42. package/dist/js/term/utils.d.ts +0 -10
  43. package/dist/js/utils.d.ts +0 -2
  44. package/src/scss/_print.scss +0 -20
@@ -0,0 +1,18 @@
1
+ @media print {
2
+ .yfm {
3
+ .yfm-cut {
4
+ &-title {
5
+ padding-left: 0;
6
+
7
+ &:before {
8
+ display: none;
9
+ }
10
+ }
11
+
12
+ &-content {
13
+ height: auto;
14
+ padding: 5px 0 15px 30px;
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ @media print {
2
+ .yfm {
3
+ .yfm-note {
4
+ page-break-inside: avoid;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,24 @@
1
+ .yfm {
2
+ .yfm-table-container {
3
+ position: relative;
4
+
5
+ & > table {
6
+ overflow: initial;
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ max-width: initial;
11
+ transform-origin: top left;
12
+
13
+ thead {
14
+ display: table-row-group;
15
+ }
16
+
17
+ th, td {
18
+ page-break-inside: avoid;
19
+ white-space: pre-wrap;
20
+ text-overflow: initial;
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,20 @@
1
+ @media print {
2
+ .yfm {
3
+ .yfm-tab {
4
+ &-list {
5
+ display: none;
6
+ }
7
+
8
+ &-panel:before {
9
+ content: attr(data-title);
10
+ margin-bottom: -1px;
11
+ margin-right: 20px;
12
+ border-bottom: 2px solid transparent;
13
+ line-height: 33px;
14
+ font-weight: 700;
15
+ outline: 0;
16
+ cursor: pointer;
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ @import 'print/code';
2
+ @import 'print/common';
3
+ @import 'print/cut';
4
+ @import 'print/note';
5
+ @import 'print/table';
6
+ @import 'print/tabs';
package/src/scss/yfm.scss CHANGED
@@ -3,7 +3,6 @@
3
3
  @import 'anchor';
4
4
  @import 'highlight';
5
5
  @import 'code';
6
- @import 'print';
7
6
  @import 'cut';
8
7
  @import 'file';
9
8
  @import 'term';
@@ -43,7 +43,7 @@ function transform(originInput: string, options: OptionsType = {}) {
43
43
 
44
44
  export = transform;
45
45
 
46
- // eslint-disable-next-line @typescript-eslint/no-namespace -- backward compatibility
46
+ // eslint-disable-next-line @typescript-eslint/no-namespace, no-redeclare -- backward compatibility
47
47
  namespace transform {
48
48
  export type Options = OptionsType;
49
49
  export type Output = OutputType;
@@ -87,6 +87,12 @@ const index: MarkdownItPluginCb<Opts> = (md, opts) => {
87
87
 
88
88
  while (j < childrenTokens.length) {
89
89
  if (childrenTokens[j].type === 'image') {
90
+ const didPatch = childrenTokens[j].attrGet('yfm_patched') || false;
91
+
92
+ if (didPatch) {
93
+ return;
94
+ }
95
+
90
96
  const imgSrc = childrenTokens[j].attrGet('src') || '';
91
97
 
92
98
  if (imgSrc.endsWith('.svg') && !isExternalHref(imgSrc)) {
@@ -94,6 +100,8 @@ const index: MarkdownItPluginCb<Opts> = (md, opts) => {
94
100
  } else {
95
101
  replaceImageSrc(childrenTokens[j], state, opts);
96
102
  }
103
+
104
+ childrenTokens[j].attrSet('yfm_patched', '1');
97
105
  }
98
106
 
99
107
  j++;
@@ -5,6 +5,7 @@
5
5
  // Process @[osf](guid)
6
6
 
7
7
  import type MarkdownIt from 'markdown-it';
8
+ // eslint-disable-next-line no-duplicate-imports
8
9
  import type {PluginWithOptions} from 'markdown-it';
9
10
  import type ParserInline from 'markdown-it/lib/parser_inline';
10
11
  import type Renderer from 'markdown-it/lib/renderer';
@@ -81,6 +82,7 @@ function tokenizeVideo(md: MarkdownIt, options: VideoFullOptions): Renderer.Rend
81
82
  }
82
83
 
83
84
  const EMBED_REGEX = /@\[([a-zA-Z].+)]\([\s]*(.*?)[\s]*[)]/im;
85
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
84
86
  function videoEmbed(md: MarkdownIt, _options: VideoFullOptions): ParserInline.RuleInline {
85
87
  return (state, silent) => {
86
88
  const theState = state;
@@ -98,7 +98,7 @@ function yfmlint(opts: Options) {
98
98
 
99
99
  export = yfmlint;
100
100
 
101
- // eslint-disable-next-line @typescript-eslint/no-namespace
101
+ // eslint-disable-next-line @typescript-eslint/no-namespace, no-redeclare
102
102
  namespace yfmlint {
103
103
  export interface LintMarkdownFunctionOptions {
104
104
  input: string;
@@ -1,38 +0,0 @@
1
- # Changelog @diplodoc/transform@4.0.0
2
-
3
- ## It's major update of @doc-tools/transform@3.11.0 with security changes.
4
-
5
- ### New term's linter
6
-
7
- The main feature of term is generating a hidden content, that will be show on click. Terms plugins creates MarkadownIt tokens at place, where term was defined and it can brake our `@doc-tools/docs` navigation. Now `@diplodoc/transform` has new yfmlint rule: `no-term-definition-in-content`. There are several restrictions: - You can't define content between term-def - All term-def should be placed at the end of file.
8
-
9
- ### Enabling `needToSanitizeHtml` by default
10
-
11
- The sanitizer includes default options with safe, allowed tags, and attributes. However, by default, both the `style` tag and the `style` attribute are also allowed. The values will be processed by the [cssfilter](https://github.com/leizongmin/js-css-filter) module to prevent XSS attacks. The cssfilter module includes a default CSS whitelist.
12
-
13
- You can override the options for sanitizer like this:
14
-
15
- ```javascript
16
- const transform = require('@doc-tools/transform');
17
- const {defaultOptions} = require('@doc-tools/transform/lib/sanitize');
18
-
19
- const sanitizeOptions = Object.assign({}, defaultOptions);
20
-
21
- // Allow css property
22
- sanitizeOptions.cssWhiteList['position'] = true;
23
-
24
- // Disallow css property
25
- delete sanitizeOptions.cssWhiteList['color'];
26
-
27
- // Disable `style` tag
28
- sanitizeOptions.allowedTags = sanitizeOptions.allowedTags.filter((tag) => tag !== 'style');
29
-
30
- // Disable `style` attribute
31
- sanitizeOptions.allowedAttributes['*'] = sanitizeOptions.allowedAttributes['*'].filter(
32
- (attr) => attr !== 'style',
33
- );
34
-
35
- const {
36
- result: {html},
37
- } = transform(content, {sanitizeOptions});
38
- ```
package/CHANGELOG.md DELETED
@@ -1,404 +0,0 @@
1
- # Changelog
2
-
3
- ## [4.0.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.11.0...v4.0.0) (2023-09-22)
4
-
5
-
6
- ### ⚠ BREAKING CHANGES
7
- - New term's linter
8
- - Enabling `needToSanitizeHtml` by default
9
-
10
- [Full changelog](https://github.com/yandex-cloud/yfm-transform/blob/92d350168d9c7d6707df0473b1b6e614fe19f702/CHANGELOG.diplodoc.md)
11
-
12
- ### Features
13
-
14
- * @diplodoc/transform@v4 ([92d3501](https://github.com/yandex-cloud/yfm-transform/commit/92d350168d9c7d6707df0473b1b6e614fe19f702))
15
-
16
- ## [3.11.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.10.3...v3.11.0) (2023-09-12)
17
-
18
-
19
- ### Features
20
-
21
- * Update @diplodoc/tabs-extension ([#303](https://github.com/yandex-cloud/yfm-transform/issues/303)) ([5325f83](https://github.com/yandex-cloud/yfm-transform/commit/5325f83f1398a2cbd459e365310c606cce6d6344))
22
-
23
- ## [3.10.3](https://github.com/yandex-cloud/yfm-transform/compare/v3.10.2...v3.10.3) (2023-09-06)
24
-
25
-
26
- ### Bug Fixes
27
-
28
- * call transformLink callback for absolute links ([#301](https://github.com/yandex-cloud/yfm-transform/issues/301)) ([3222f5f](https://github.com/yandex-cloud/yfm-transform/commit/3222f5fb1ac4a9da053ab1d6e05e5c21d31d9445))
29
-
30
- ## [3.10.2](https://github.com/yandex-cloud/yfm-transform/compare/v3.10.1...v3.10.2) (2023-09-04)
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * absolute links in included files ([cefe20a](https://github.com/yandex-cloud/yfm-transform/commit/cefe20af8a80827929fe36d2e85d5a9b56b3f701))
36
-
37
- ## [3.10.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.10.0...v3.10.1) (2023-09-01)
38
-
39
-
40
- ### Bug Fixes
41
-
42
- * table styles ([#297](https://github.com/yandex-cloud/yfm-transform/issues/297)) ([ea49cf2](https://github.com/yandex-cloud/yfm-transform/commit/ea49cf285616533e4d8be64c6596ee9dc44c84fd))
43
-
44
- ## [3.10.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.9.1...v3.10.0) (2023-08-30)
45
-
46
-
47
- ### Features
48
-
49
- * add `highlight.js@11` to `peerDependencies` ([#294](https://github.com/yandex-cloud/yfm-transform/issues/294)) ([d3c1869](https://github.com/yandex-cloud/yfm-transform/commit/d3c1869ded30cd0d62a29c86c324f1e0a7a4a4f5))
50
-
51
- ## [3.9.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.9.0...v3.9.1) (2023-08-28)
52
-
53
-
54
- ### Bug Fixes
55
-
56
- * thead tables' styles ([#292](https://github.com/yandex-cloud/yfm-transform/issues/292)) ([b49eb50](https://github.com/yandex-cloud/yfm-transform/commit/b49eb501a21e9bf8c914472cb68a6efd14ac74f8))
57
-
58
- ## [3.9.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.8.5...v3.9.0) (2023-08-23)
59
-
60
-
61
- ### Features
62
-
63
- * WIKI-19593: implementation of new table design ([#283](https://github.com/yandex-cloud/yfm-transform/issues/283)) ([c208540](https://github.com/yandex-cloud/yfm-transform/commit/c208540ce14d18a705e4f31469b4e291436a7550))
64
-
65
- ## [3.8.5](https://github.com/yandex-cloud/yfm-transform/compare/v3.8.4...v3.8.5) (2023-08-15)
66
-
67
-
68
- ### Bug Fixes
69
-
70
- * Change runtime builder to esbuild ([e3f6cb0](https://github.com/yandex-cloud/yfm-transform/commit/e3f6cb0783a39ec333935b596e05f8ecb45b6af5))
71
-
72
- ## [3.8.4](https://github.com/yandex-cloud/yfm-transform/compare/v3.8.3...v3.8.4) (2023-08-14)
73
-
74
-
75
- ### Bug Fixes
76
-
77
- * Fix tabs extension runtime import ([51f0323](https://github.com/yandex-cloud/yfm-transform/commit/51f03235320801382e25629fcd50d5baa541f4fe))
78
-
79
- ## [3.8.3](https://github.com/yandex-cloud/yfm-transform/compare/v3.8.2...v3.8.3) (2023-08-12)
80
-
81
-
82
- ### Bug Fixes
83
-
84
- * **plugins/tabs:** update tabs extension version ([ddd2dc8](https://github.com/yandex-cloud/yfm-transform/commit/ddd2dc84ba181427811863303fcb75f9d814ff61))
85
-
86
- ## [3.8.2](https://github.com/yandex-cloud/yfm-transform/compare/v3.8.1...v3.8.2) (2023-08-10)
87
-
88
-
89
- ### Bug Fixes
90
-
91
- * Fix tabs extension runtime import ([321006d](https://github.com/yandex-cloud/yfm-transform/commit/321006d0861ce480e6775dae681a5b2ee1f40008))
92
-
93
- ## [3.8.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.8.0...v3.8.1) (2023-08-10)
94
-
95
-
96
- ### Bug Fixes
97
-
98
- * **tabs-extension:** preserve tab items markup ([364ce16](https://github.com/yandex-cloud/yfm-transform/commit/364ce16c854898397c8a1f77d58c162a59ba13f6))
99
-
100
- ## [3.8.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.7.0...v3.8.0) (2023-08-09)
101
-
102
-
103
- ### Features
104
-
105
- * Update @diplodoc/tabs-extension version ([#268](https://github.com/yandex-cloud/yfm-transform/issues/268)) ([51a4ed2](https://github.com/yandex-cloud/yfm-transform/commit/51a4ed251904db640f7b98638b8e924cb849ab2e))
106
-
107
- ## [3.7.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.6.1...v3.7.0) (2023-08-07)
108
-
109
-
110
- ### Features
111
-
112
- * raise tabs-extension npm version ([#264](https://github.com/yandex-cloud/yfm-transform/issues/264)) ([a7954bf](https://github.com/yandex-cloud/yfm-transform/commit/a7954bf9280c09e05dc26023951a7e4a120656b7))
113
-
114
- ## [3.6.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.6.0...v3.6.1) (2023-08-03)
115
-
116
-
117
- ### Bug Fixes
118
-
119
- * include @diplodoc/tabs-extension css ([#261](https://github.com/yandex-cloud/yfm-transform/issues/261)) ([c2a604a](https://github.com/yandex-cloud/yfm-transform/commit/c2a604ae0186cd00c7b4286b15bbbcb246c06a81))
120
-
121
- ## [3.6.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.5.0...v3.6.0) (2023-08-03)
122
-
123
-
124
- ### Features
125
-
126
- * Update @diplodoc/tabs-extension ([#259](https://github.com/yandex-cloud/yfm-transform/issues/259)) ([4a39991](https://github.com/yandex-cloud/yfm-transform/commit/4a3999144104c331786bbcbd62e8d4f02b9218f3))
127
-
128
- ## [3.5.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.4.0...v3.5.0) (2023-07-31)
129
-
130
-
131
- ### Features
132
-
133
- * **tabs:** Start using @diplodoc/tabs-extension ([#257](https://github.com/yandex-cloud/yfm-transform/issues/257)) ([66b7f18](https://github.com/yandex-cloud/yfm-transform/commit/66b7f18a6ac98a1de6291721039dc9106b691243))
134
-
135
- ## [3.4.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.3.2...v3.4.0) (2023-07-27)
136
-
137
-
138
- ### Features
139
-
140
- * **anchors:** Add anchors to headings in table ([feef516](https://github.com/yandex-cloud/yfm-transform/commit/feef516683ae309dd96ee25c9ee7d91cb30cf07e))
141
- * **diplodoc/term:** new terms ([9bf89ef](https://github.com/yandex-cloud/yfm-transform/commit/9bf89ef825d7f79c7bfacd77925a09b7b2e504ab))
142
-
143
-
144
- ### Bug Fixes
145
-
146
- * link breaks anchored header since version ([6611151](https://github.com/yandex-cloud/yfm-transform/commit/66111515337dd396f9ad7255462173c01e86a9a5)), closes [#253](https://github.com/yandex-cloud/yfm-transform/issues/253)
147
-
148
- ## [3.3.2](https://github.com/yandex-cloud/yfm-transform/compare/v3.3.1...v3.3.2) (2023-07-12)
149
-
150
-
151
- ### Bug Fixes
152
-
153
- * **plugins/table:** line map for table, table cell close tokens ([9600b7f](https://github.com/yandex-cloud/yfm-transform/commit/9600b7f8e22226be68dcbe570422c4c0b4a3abf5))
154
-
155
- ## [3.3.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.3.0...v3.3.1) (2023-07-07)
156
-
157
-
158
- ### Bug Fixes
159
-
160
- * **heading:** Double text in mini-toc ([2d0a700](https://github.com/yandex-cloud/yfm-transform/commit/2d0a7007c49c2de361ac6f9188fe417083cf8ae7))
161
-
162
- ## [3.3.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.2.0...v3.3.0) (2023-07-07)
163
-
164
-
165
- ### Features
166
-
167
- * **anchors:** Revert rel=nofollow and add invisible title for anchor links ([8ea800d](https://github.com/yandex-cloud/yfm-transform/commit/8ea800d0a630ecd3a765bed493e13cf766c53912))
168
- * **cut:** decrease z-index of cut open/close icon ([39b5e38](https://github.com/yandex-cloud/yfm-transform/commit/39b5e380e35c002e548929942404053aaeaaa91e))
169
-
170
- ## [3.2.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.1.3...v3.2.0) (2023-07-05)
171
-
172
-
173
- ### Features
174
-
175
- * **anchors:** Add rel=nofollow for anchor links ([cb0efae](https://github.com/yandex-cloud/yfm-transform/commit/cb0efae167721d81d966137baa7f3f5f85a75ae7))
176
-
177
- ## [3.1.3](https://github.com/yandex-cloud/yfm-transform/compare/v3.1.2...v3.1.3) (2023-06-30)
178
-
179
-
180
- ### Bug Fixes
181
-
182
- * **plugins/tabs:** save line mapping for tabs ([3e695db](https://github.com/yandex-cloud/yfm-transform/commit/3e695db020fc6a02f0ca35e8d150e0f085d511b4))
183
-
184
- ## [3.1.2](https://github.com/yandex-cloud/yfm-transform/compare/v3.1.1...v3.1.2) (2023-06-21)
185
-
186
-
187
- ### Bug Fixes
188
-
189
- * **changelog:** date is not required ([#235](https://github.com/yandex-cloud/yfm-transform/issues/235)) ([b7b1c4d](https://github.com/yandex-cloud/yfm-transform/commit/b7b1c4dec78a5f0d64496ba182af3990412e2652))
190
- * **liquid:** move code indexes from global scope ([c877c48](https://github.com/yandex-cloud/yfm-transform/commit/c877c489745738031bba9ad8dbca38a5790815b4))
191
-
192
- ## [3.1.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.1.0...v3.1.1) (2023-06-14)
193
-
194
-
195
- ### Bug Fixes
196
-
197
- * **plugins/checkbox:** preserve line mapping ([9ccee18](https://github.com/yandex-cloud/yfm-transform/commit/9ccee1834ccd7203f0528330c7d3498cd61558ea))
198
-
199
- ## [3.1.0](https://github.com/yandex-cloud/yfm-transform/compare/v3.0.3...v3.1.0) (2023-06-01)
200
-
201
-
202
- ### Features
203
-
204
- * **changelog:** add support for changelog blocks ([#226](https://github.com/yandex-cloud/yfm-transform/issues/226)) ([8f5670b](https://github.com/yandex-cloud/yfm-transform/commit/8f5670bf4559f26cb9c88153089706d8163cef9b))
205
-
206
- ## [3.0.3](https://github.com/yandex-cloud/yfm-transform/compare/v3.0.2...v3.0.3) (2023-05-30)
207
-
208
-
209
- ### Bug Fixes
210
-
211
- * **plugins/cuts:** preserve line mapping ([9eb93f9](https://github.com/yandex-cloud/yfm-transform/commit/9eb93f998fd21818ccf427799e39e1d5707f9e95))
212
-
213
- ## [3.0.2](https://github.com/yandex-cloud/yfm-transform/compare/v3.0.1...v3.0.2) (2023-05-23)
214
-
215
-
216
- ### Bug Fixes
217
-
218
- * fonts ([2a0adfe](https://github.com/yandex-cloud/yfm-transform/commit/2a0adfef1078bae37d5cc228beff6a4ecb6f32f4))
219
-
220
- ## [3.0.1](https://github.com/yandex-cloud/yfm-transform/compare/v3.0.0...v3.0.1) (2023-05-22)
221
-
222
-
223
- ### Bug Fixes
224
-
225
- * **plugins/notes:** preserve line mapping ([29e4c5c](https://github.com/yandex-cloud/yfm-transform/commit/29e4c5c997d4a6933ac8330490f5bf9c07a9e3f1))
226
-
227
- ## [3.0.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.18.3...v3.0.0) (2023-05-10)
228
-
229
-
230
- ### ⚠ BREAKING CHANGES
231
-
232
- * font from variable
233
-
234
- ### Bug Fixes
235
-
236
- * font from variable ([fed80ee](https://github.com/yandex-cloud/yfm-transform/commit/fed80ee7caed028330f6460cb05845b7d34ba689))
237
-
238
- ## [2.18.3](https://github.com/yandex-cloud/yfm-transform/compare/v2.18.2...v2.18.3) (2023-04-20)
239
-
240
-
241
- ### Bug Fixes
242
-
243
- * Mark highlight.js as optional dependency ([cc24703](https://github.com/yandex-cloud/yfm-transform/commit/cc2470331f69abb7aa906a581ec0fd34ae63e13c))
244
-
245
- ## [2.18.2](https://github.com/yandex-cloud/yfm-transform/compare/v2.18.1...v2.18.2) (2023-04-19)
246
-
247
-
248
- ### Bug Fixes
249
-
250
- * Make env.meta writeable ([f6540bd](https://github.com/yandex-cloud/yfm-transform/commit/f6540bd8578cc197c4cb4c5ee5e42ea5da97da13))
251
-
252
- ## [2.18.1](https://github.com/yandex-cloud/yfm-transform/compare/v2.18.0...v2.18.1) (2023-04-14)
253
-
254
-
255
- ### Bug Fixes
256
-
257
- * **cut:** fix inline markup parsing in cut title ([d24413f](https://github.com/yandex-cloud/yfm-transform/commit/d24413f0398217a2793990bfffc9f8d205d38033))
258
- * **сheckbox:** fix inline markup parsing in the checkbox label ([ffa65a5](https://github.com/yandex-cloud/yfm-transform/commit/ffa65a5fae956267b57fea34ad1cc38fb132b118))
259
-
260
- ## [2.18.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.17.0...v2.18.0) (2023-04-06)
261
-
262
-
263
- ### Features
264
-
265
- * **sanitize:** allow 'allow' iframe attribute ([#214](https://github.com/yandex-cloud/yfm-transform/issues/214)) ([70d79b6](https://github.com/yandex-cloud/yfm-transform/commit/70d79b6e426d7e42d3bb9a422971e5b7fbb037fd))
266
-
267
- ## [2.17.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.16.4...v2.17.0) (2023-04-03)
268
-
269
-
270
- ### Features
271
-
272
- * **md:** Refactor transform index ([7df96ac](https://github.com/yandex-cloud/yfm-transform/commit/7df96ac626918ff21167dfce6daf9cf834d934d8))
273
-
274
-
275
- ### Bug Fixes
276
-
277
- * wrap tab list on small screens ([#213](https://github.com/yandex-cloud/yfm-transform/issues/213)) ([cfb847e](https://github.com/yandex-cloud/yfm-transform/commit/cfb847edc752701829d3369d7c4c8889d7e11f93))
278
-
279
- ## [2.16.4](https://github.com/yandex-cloud/yfm-transform/compare/v2.16.3...v2.16.4) (2023-02-13)
280
-
281
-
282
- ### Bug Fixes
283
-
284
- * **liquid:** Add missed `contains` operator ([130c021](https://github.com/yandex-cloud/yfm-transform/commit/130c0210058edb3d49f77d42e05ddbbb0a5770c2))
285
- * **liquid:** Process large fence blocks ([0e97260](https://github.com/yandex-cloud/yfm-transform/commit/0e97260b32d995682112bf5f6339be1dd621fe59))
286
-
287
- ## [2.16.3](https://github.com/yandex-cloud/yfm-transform/compare/v2.16.2...v2.16.3) (2023-01-26)
288
-
289
-
290
- ### Bug Fixes
291
-
292
- * fix sanitize-html package version ([#203](https://github.com/yandex-cloud/yfm-transform/issues/203)) ([3199c53](https://github.com/yandex-cloud/yfm-transform/commit/3199c533dfa9bae149d65ffee11c15ea7d6e266b))
293
-
294
- ## [2.16.2](https://github.com/yandex-cloud/yfm-transform/compare/v2.16.1...v2.16.2) (2022-11-30)
295
-
296
-
297
- ### Bug Fixes
298
-
299
- * **include:** passing conditionsInCode through pluginOptions ([dfa986f](https://github.com/yandex-cloud/yfm-transform/commit/dfa986f50ab8bd380a04c81ab1444e5419c4d7ef))
300
-
301
- ## [2.16.1](https://github.com/yandex-cloud/yfm-transform/compare/v2.16.0...v2.16.1) (2022-11-29)
302
-
303
-
304
- ### Bug Fixes
305
-
306
- * **include:** support paths with sharp symbol ([a19bd3c](https://github.com/yandex-cloud/yfm-transform/commit/a19bd3c971f268d887527912c8bf833d78c09683))
307
-
308
- ## [2.16.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.15.0...v2.16.0) (2022-11-08)
309
-
310
-
311
- ### Features
312
-
313
- * **checkbox:** add support for inline markup in checkbox label ([#194](https://github.com/yandex-cloud/yfm-transform/issues/194)) ([7582017](https://github.com/yandex-cloud/yfm-transform/commit/7582017ffb9d4f5befb0872af811d4453d629ee0))
314
-
315
-
316
- ### Bug Fixes
317
-
318
- * include src folder for sourcemaps ([e0c831d](https://github.com/yandex-cloud/yfm-transform/commit/e0c831d80b5232c4c301c10d54014927c3576627))
319
-
320
- ## [2.15.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.14.2...v2.15.0) (2022-11-02)
321
-
322
-
323
- ### Features
324
-
325
- * add linkifyTlds option ([951fd7f](https://github.com/yandex-cloud/yfm-transform/commit/951fd7fbb8f6926dd3cd8256da927f00b1786b36))
326
-
327
-
328
- ### Bug Fixes
329
-
330
- * add conditionsInCode and test ([00b5111](https://github.com/yandex-cloud/yfm-transform/commit/00b51112340522584cd62f43ae1baa445588dd83))
331
- * sup,sub line-height ([291fac7](https://github.com/yandex-cloud/yfm-transform/commit/291fac711eb94847a712da79b5631952ed8af977))
332
- * update test ([473d04a](https://github.com/yandex-cloud/yfm-transform/commit/473d04aa3140231fb7bcd9c3d6eac2a85b0839a2))
333
-
334
- ## [2.14.2](https://github.com/yandex-cloud/yfm-transform/compare/v2.14.1...v2.14.2) (2022-10-10)
335
-
336
-
337
- ### Bug Fixes
338
-
339
- * **checkbox:** fix input and label alignment ([#186](https://github.com/yandex-cloud/yfm-transform/issues/186)) ([dbe772d](https://github.com/yandex-cloud/yfm-transform/commit/dbe772d74a5b2a605e6b4b08a66885fcd250374d))
340
- * **checkbox:** make checkboxes non-editable ([#184](https://github.com/yandex-cloud/yfm-transform/issues/184)) ([097529f](https://github.com/yandex-cloud/yfm-transform/commit/097529f5aaa3a7f97ba88c2a8b8d4c78a7af9a1f))
341
-
342
- ## [2.14.1](https://github.com/yandex-cloud/yfm-transform/compare/v2.14.0...v2.14.1) (2022-09-20)
343
-
344
-
345
- ### Bug Fixes
346
-
347
- * **term:** custom header top coordinate ([#182](https://github.com/yandex-cloud/yfm-transform/issues/182)) ([8ebd61f](https://github.com/yandex-cloud/yfm-transform/commit/8ebd61f8c1388f42071427ac3c334a37e7ee88d6))
348
-
349
- ## [2.14.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.13.0...v2.14.0) (2022-09-15)
350
-
351
-
352
- ### Features
353
-
354
- * add html sanitizing [DOCSTOOLS-1350] ([#177](https://github.com/yandex-cloud/yfm-transform/issues/177)) ([634f7f8](https://github.com/yandex-cloud/yfm-transform/commit/634f7f80ceaac8c996aed33d6c2005ecb1c935a4))
355
-
356
- ## [2.13.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.12.0...v2.13.0) (2022-09-13)
357
-
358
-
359
- ### Features
360
-
361
- * Add term syntax DOCSTOOLS-1268 ([#172](https://github.com/yandex-cloud/yfm-transform/issues/172)) ([ddfb30b](https://github.com/yandex-cloud/yfm-transform/commit/ddfb30b08c823cececb385416e1d7b649298c5f2))
362
-
363
- ## [2.12.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.11.1...v2.12.0) (2022-09-08)
364
-
365
-
366
- ### Features
367
-
368
- * Enable imsize by default ([a77710f](https://github.com/yandex-cloud/yfm-transform/commit/a77710f6116a31462966ea466568bd48ab9dd80f))
369
-
370
- ## [2.11.1](https://github.com/yandex-cloud/yfm-transform/compare/v2.11.0...v2.11.1) (2022-09-07)
371
-
372
-
373
- ### Bug Fixes
374
-
375
- * **cut:** add title search inside path ([8966384](https://github.com/yandex-cloud/yfm-transform/commit/8966384375962bf61f08c083f9b0752aac49d8b2))
376
-
377
- ## [2.11.0](https://github.com/yandex-cloud/yfm-transform/compare/v2.10.5...v2.11.0) (2022-08-22)
378
-
379
-
380
- ### Features
381
-
382
- * **note:** allow inline formatting in note title ([2a8bc0f](https://github.com/yandex-cloud/yfm-transform/commit/2a8bc0fe796509440d0b6672ac7c14179992cafc))
383
-
384
- ## [2.10.5](https://github.com/yandex-cloud/yfm-transform/compare/v2.10.4...v2.10.5) (2022-08-17)
385
-
386
-
387
- ### Bug Fixes
388
-
389
- * Update major dependencies ([1687c59](https://github.com/yandex-cloud/yfm-transform/commit/1687c595a2f5fe41d8c1d718c6b128a621c5f614))
390
-
391
- ## [2.10.4](https://github.com/yandex-cloud/yfm-transform/compare/v2.10.3...v2.10.4) (2022-08-17)
392
-
393
-
394
- ### Bug Fixes
395
-
396
- * Minor update dependencies ([20ba740](https://github.com/yandex-cloud/yfm-transform/commit/20ba7406eed7068384c661d6159b96b75d9791f7))
397
-
398
- ## [2.10.1](https://github.com/yandex-cloud/yfm-transform/compare/v2.10.0...v2.10.1) (2022-08-16)
399
-
400
-
401
- ### Bug Fixes
402
-
403
- * Add autorelease ([a946626](https://github.com/yandex-cloud/yfm-transform/commit/a946626804f76afc9e1fe7fbd472931df24e73e1))
404
- * Fix autorelease ([2d6bcf7](https://github.com/yandex-cloud/yfm-transform/commit/2d6bcf75ee8c38ed9c913c03eb92dc844fb2beae))
package/dist/js/code.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/js/cut.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- import '@diplodoc-platfrom/tabs-extension/runtime';
2
- import './polyfill';
3
- import './code';
4
- import './cut';
5
- import './term';
@@ -1 +0,0 @@
1
- export {};
package/dist/js/tabs.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- export declare const Selector: {
2
- TITLE: string;
3
- CONTENT: string;
4
- };
5
- export declare const openClass = "open";
6
- export declare const openDefinitionClass: string;
7
- export declare function createDefinitionElement(termElement: HTMLElement): HTMLElement;
8
- export declare function setDefinitionId(definitionElement: HTMLElement, termElement: HTMLElement): void;
9
- export declare function setDefinitionPosition(definitionElement: HTMLElement, termElement: HTMLElement): void;
10
- export declare function closeDefinition(definition: HTMLElement): void;
@@ -1,2 +0,0 @@
1
- export declare const getEventTarget: (event: Event) => EventTarget | null;
2
- export declare const isCustom: (event: Event) => boolean;
@@ -1,20 +0,0 @@
1
- @media print {
2
- .tab-list {
3
- display: none !important;
4
- }
5
-
6
- .tab-panel:before {
7
- content: attr(data-title);
8
- margin-bottom: -1px;
9
- margin-right: 20px;
10
- border-bottom: 2px solid transparent;
11
- line-height: 33px;
12
- font-weight: 700;
13
- outline: 0;
14
- cursor: pointer;
15
- }
16
-
17
- .tab-panel {
18
- display: block !important;
19
- }
20
- }