@diplodoc/transform 4.57.2 → 4.57.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/transform",
3
- "version": "4.57.2",
3
+ "version": "4.57.5",
4
4
  "description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
5
5
  "keywords": [
6
6
  "markdown",
@@ -34,6 +34,7 @@
34
34
  "build:lib": "tsc -p tsconfig.transform.json",
35
35
  "dev:lib": "tsc -w -p tsconfig.transform.json",
36
36
  "dev:playground": "node ./scripts/dev.mjs",
37
+ "preplayground": "cd playground && npm ci --ignore-scripts || (exit 0)",
37
38
  "playground": "run-p dev:*",
38
39
  "artifact:playground": "node --input-type=module -e \"(await import('./playground/scripts/pages.mjs')).bundleDeployables('./pages-build')\"",
39
40
  "artifact:pages": "npm run build && npm run artifact:playground",
@@ -45,8 +46,7 @@
45
46
  "lint": "lint update && lint",
46
47
  "lint:fix": "lint update && lint fix",
47
48
  "pre-commit": "lint update && lint-staged",
48
- "prepare": "husky",
49
- "postinstall": "cd playground && npm ci --ignore-scripts || true"
49
+ "prepare": "husky"
50
50
  },
51
51
  "dependencies": {
52
52
  "@diplodoc/cut-extension": "^0.7.2",
@@ -327,11 +327,8 @@
327
327
  margin-block: var(--yfm-list-text-only-margin-block, 0);
328
328
  }
329
329
 
330
- @supports selector(:has(br)) {
331
- > p:only-of-type:has(br),
332
- > blockquote:only-of-type:has(br) {
333
- margin-block: var(--yfm-list-text-margin-block, 0 15px);
334
- }
330
+ > p:last-child {
331
+ margin-block: var(--yfm-list-text-last-margin-block, 0);
335
332
  }
336
333
  }
337
334