@readme/markdown 14.13.1 → 14.13.2
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/components/TailwindRoot/index.tsx +4 -0
- package/dist/example/components.d.ts +2 -0
- package/dist/lib/mdxish.d.ts +1 -1
- package/dist/lib/renderMdxish.d.ts +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/main.js +65 -18
- package/dist/main.node.js +65 -18
- package/dist/main.node.js.map +1 -1
- package/dist/processor/plugin/mdxish-components.d.ts +1 -1
- package/dist/render-fixture.node.js +65 -18
- package/dist/render-fixture.node.js.map +1 -1
- package/package.json +1 -1
- package/styles/gfm.scss +15 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "14.13.
|
|
5
|
+
"version": "14.13.2",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|
package/styles/gfm.scss
CHANGED
|
@@ -268,6 +268,17 @@
|
|
|
268
268
|
margin-bottom: 0 !important;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
// When a TailwindRoot-wrapped custom block sits at the document edge, its
|
|
272
|
+
// inner margins would collapse through the zeroed wrapper — trim them too.
|
|
273
|
+
& > .readme-tailwind:first-child > :first-child,
|
|
274
|
+
& > .readme-tailwind:nth-child(1 of :not(style)) > :first-child {
|
|
275
|
+
margin-top: 0 !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
& > .readme-tailwind:last-child > :last-child {
|
|
279
|
+
margin-bottom: 0 !important;
|
|
280
|
+
}
|
|
281
|
+
|
|
271
282
|
blockquote,
|
|
272
283
|
dl,
|
|
273
284
|
p,
|
|
@@ -392,7 +403,10 @@
|
|
|
392
403
|
border-bottom: 0;
|
|
393
404
|
}
|
|
394
405
|
|
|
395
|
-
|
|
406
|
+
// Custom blocks (e.g. reusable content) render inside a flow TailwindRoot
|
|
407
|
+
// div, so spacing must pierce the wrapper to reach their block children.
|
|
408
|
+
> *,
|
|
409
|
+
> .readme-tailwind > * {
|
|
396
410
|
margin-bottom: var(--markdown-spacing, 15px);
|
|
397
411
|
margin-top: var(--markdown-spacing, 15px);
|
|
398
412
|
}
|