@diplodoc/transform 4.50.3 → 4.50.4

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.50.3",
3
+ "version": "4.50.4",
4
4
  "description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
5
5
  "keywords": [
6
6
  "markdown",
@@ -313,14 +313,23 @@
313
313
  margin-block: var(--yfm-list-item-margin-block, 0.33em 0);
314
314
  }
315
315
 
316
- li p,
317
- li blockquote {
318
- margin-block: var(--yfm-list-text-margin-block, 15px);
319
- }
316
+ li {
317
+ p,
318
+ blockquote {
319
+ margin-block: var(--yfm-list-text-margin-block, 0 15px);
320
+ }
320
321
 
321
- li > p:last-child,
322
- li > blockquote:last-child {
323
- margin-block: var(--yfm-list-text-last-margin-block, 15px);
322
+ > p:only-child,
323
+ > blockquote:only-child {
324
+ margin-block: var(--yfm-list-text-only-margin-block, 0);
325
+ }
326
+
327
+ @supports selector(:has(br)) {
328
+ > p:only-child:has(br),
329
+ > blockquote:only-child:has(br) {
330
+ margin-block: var(--yfm-list-text-margin-block, 0 15px);
331
+ }
332
+ }
324
333
  }
325
334
 
326
335
  code {