@readme/markdown 14.5.0 → 14.6.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/components/Image/index.tsx +10 -5
- package/components/Image/style.scss +35 -5
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/main.js +12 -7
- package/dist/main.node.js +12 -7
- package/dist/main.node.js.map +1 -1
- package/package.json +1 -1
- package/styles/gfm.scss +15 -0
- package/types.d.ts +1 -0
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.
|
|
5
|
+
"version": "14.6.0",
|
|
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
|
@@ -277,6 +277,21 @@
|
|
|
277
277
|
margin-top: 0;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
// no margins where we’ll likely have inline images or they might break layout
|
|
281
|
+
h1,
|
|
282
|
+
h2,
|
|
283
|
+
h3,
|
|
284
|
+
h4,
|
|
285
|
+
h5,
|
|
286
|
+
h6,
|
|
287
|
+
figcaption,
|
|
288
|
+
ol,
|
|
289
|
+
ul,
|
|
290
|
+
p,
|
|
291
|
+
table {
|
|
292
|
+
--markdown-img-margin: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
280
295
|
ol,
|
|
281
296
|
ul {
|
|
282
297
|
margin-bottom: round(1.3333em, 1px); // 20px at 15px base (condensed)
|