@readme/markdown 8.4.1 → 9.0.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,5 +1,4 @@
1
1
  import postcss from 'postcss';
2
- declare function tailwindBundle(string: string, { prefix }: {
2
+ export declare function tailwindCompiler(classes: string[], { prefix }: {
3
3
  prefix: string;
4
4
  }): Promise<postcss.Result<postcss.Root>>;
5
- export default tailwindBundle;
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": "8.4.1",
5
+ "version": "9.0.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
@@ -234,6 +234,11 @@
234
234
  margin-top: 0 !important;
235
235
  }
236
236
 
237
+ // for mdx pages, select the next element after <style>
238
+ & > style + :nth-child(2) {
239
+ margin-top: 0 !important;
240
+ }
241
+
237
242
  & > :last-child {
238
243
  margin-bottom: 0 !important;
239
244
  }
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { createPortal } from 'react-dom';
3
-
4
- interface Props {
5
- stylesheet?: string;
6
- }
7
-
8
- const Style = ({ stylesheet }: Props) => {
9
- const hasDom = typeof document !== 'undefined';
10
-
11
- if (!stylesheet) {
12
- return null;
13
- }
14
-
15
- return hasDom ? createPortal(<style>{stylesheet}</style>, document.head) : <style>{stylesheet}</style>;
16
- };
17
-
18
- export default Style;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- stylesheet?: string;
4
- }
5
- declare const Style: ({ stylesheet }: Props) => React.JSX.Element;
6
- export default Style;