@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/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.0",
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)
package/types.d.ts CHANGED
@@ -143,6 +143,7 @@ export interface ImageBlockAttrs {
143
143
  src: string;
144
144
  title: string;
145
145
  width?: string;
146
+ wrap?: boolean;
146
147
  }
147
148
 
148
149
  export interface ImageBlock extends ImageBlockAttrs, Omit<Parent, 'children'> {