@diplodoc/transform 4.50.2 → 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.2",
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",
@@ -100,6 +100,7 @@
100
100
  svg {
101
101
  box-sizing: content-box;
102
102
  max-width: 100%;
103
+ max-height: fit-content;
103
104
  border: none;
104
105
  vertical-align: middle;
105
106
 
@@ -312,14 +313,23 @@
312
313
  margin-block: var(--yfm-list-item-margin-block, 0.33em 0);
313
314
  }
314
315
 
315
- li p,
316
- li blockquote {
317
- margin-block: var(--yfm-list-text-margin-block, 15px);
318
- }
316
+ li {
317
+ p,
318
+ blockquote {
319
+ margin-block: var(--yfm-list-text-margin-block, 0 15px);
320
+ }
319
321
 
320
- li > p:last-child,
321
- li > blockquote:last-child {
322
- 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
+ }
323
333
  }
324
334
 
325
335
  code {