@readme/markdown 9.11.1 → 9.12.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.
@@ -1,3 +1,5 @@
1
- import type { Root } from 'mdast';
1
+ import type { Blockquote, Heading, Root } from 'mdast';
2
+ import type { Callout } from 'types';
3
+ export declare const wrapHeading: (node: Blockquote | Callout) => Heading;
2
4
  declare const calloutTransformer: () => (tree: Root) => void;
3
5
  export default calloutTransformer;
@@ -0,0 +1,3 @@
1
+ import type { Root } from 'mdast';
2
+ declare const migrateCallouts: () => (tree: Root) => Root;
3
+ export default migrateCallouts;
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": "9.11.1",
5
+ "version": "9.12.0",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",
@@ -130,6 +130,7 @@
130
130
  "ts-loader": "^9.4.2",
131
131
  "typescript": "^5.7.3",
132
132
  "unist-util-map": "^4.0.0",
133
+ "unist-util-remove-position": "^5.0.0",
133
134
  "vitest": "^3.0.5",
134
135
  "webpack": "^5.56.0",
135
136
  "webpack-cli": "^5.0.1",
package/styles/gfm.scss CHANGED
@@ -255,7 +255,7 @@
255
255
  }
256
256
 
257
257
  blockquote {
258
- border-left: 0.25em solid #dfe2e5;
258
+ border-left: 0.225em solid #dfe2e5;
259
259
  color: #6a737d;
260
260
  display: block;
261
261
  padding: 0 1em;