@diplodoc/transform 4.47.4 → 4.48.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/transform",
3
- "version": "4.47.4",
3
+ "version": "4.48.0",
4
4
  "description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
5
5
  "keywords": [
6
6
  "markdown",
@@ -135,7 +135,7 @@
135
135
  dl,
136
136
  table,
137
137
  pre {
138
- margin: 0 0 15px;
138
+ margin-block: var(--yfm-text-block-margin-block, 0 15px);
139
139
  }
140
140
 
141
141
  ul,
@@ -333,12 +333,17 @@
333
333
  }
334
334
 
335
335
  li + li {
336
- margin-top: 0.33em;
336
+ margin-block: var(--yfm-list-item-margin-block, 0.33em 0);
337
337
  }
338
338
 
339
339
  li p,
340
340
  li blockquote {
341
- margin-top: 15px;
341
+ margin-block: var(--yfm-list-text-margin-block, 15px);
342
+ }
343
+
344
+ li > p:last-child,
345
+ li > blockquote:last-child {
346
+ margin-block: var(--yfm-list-text-last-margin-block, 15px);
342
347
  }
343
348
 
344
349
  code {