@diplodoc/transform 4.67.0 → 4.68.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.
@@ -136,6 +136,7 @@
136
136
  }
137
137
 
138
138
  p,
139
+ .checkbox,
139
140
  blockquote,
140
141
  ul,
141
142
  ol,
@@ -179,6 +180,25 @@
179
180
  }
180
181
  }
181
182
 
183
+ .checkbox {
184
+ display: flex;
185
+
186
+ & > input[type='checkbox'] {
187
+ align-self: flex-start;
188
+ top: 3px;
189
+
190
+ margin-right: 3px;
191
+ }
192
+
193
+ &:has(+ .checkbox) {
194
+ margin-bottom: var(--yfm-checkbox-margin-between, 0);
195
+ }
196
+
197
+ & + .checkbox {
198
+ margin-top: 0;
199
+ }
200
+ }
201
+
182
202
  table {
183
203
  color: var(--yfm-color-table, var(--yfm-color-table-private));
184
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/transform",
3
- "version": "4.67.0",
3
+ "version": "4.68.0",
4
4
  "description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
5
5
  "keywords": [
6
6
  "markdown",
@@ -39,8 +39,7 @@
39
39
  "dev:playground": "node ./scripts/dev.mjs",
40
40
  "preplayground": "cd playground && npm ci --ignore-scripts || (exit 0)",
41
41
  "playground": "run-p dev:*",
42
- "artifact:playground": "node --input-type=module -e \"(await import('./playground/scripts/pages.mjs')).bundleDeployables('./pages-build')\"",
43
- "artifact:pages": "npm run build && npm run artifact:playground",
42
+ "artifact:playground": "node ./playground/scripts/pages.mjs",
44
43
  "prepublishOnly": "npm run lint && npm run test && npm run build",
45
44
  "test": "vitest run --coverage",
46
45
  "test:playwright:nobuild": "cd e2e && npm run playwright:docker --",
@@ -136,6 +136,7 @@
136
136
  }
137
137
 
138
138
  p,
139
+ .checkbox,
139
140
  blockquote,
140
141
  ul,
141
142
  ol,
@@ -179,6 +180,25 @@
179
180
  }
180
181
  }
181
182
 
183
+ .checkbox {
184
+ display: flex;
185
+
186
+ & > input[type='checkbox'] {
187
+ align-self: flex-start;
188
+ top: 3px;
189
+
190
+ margin-right: 3px;
191
+ }
192
+
193
+ &:has(+ .checkbox) {
194
+ margin-bottom: var(--yfm-checkbox-margin-between, 0);
195
+ }
196
+
197
+ & + .checkbox {
198
+ margin-top: 0;
199
+ }
200
+ }
201
+
182
202
  table {
183
203
  color: var(--yfm-color-table, var(--yfm-color-table-private));
184
204