@readme/markdown 8.4.0 → 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.
- package/components/TailwindStyle/index.tsx +79 -0
- package/components/index.ts +2 -2
- package/dist/components/TailwindStyle/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/example/components.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/compile.d.ts +1 -2
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/main.js +1167 -1152
- package/dist/main.node.js +1165 -1150
- package/dist/main.node.js.map +1 -1
- package/dist/processor/plugin/toc.d.ts +2 -2
- package/dist/utils/{tailwind-bundle.d.ts → tailwind-compiler.d.ts} +1 -2
- package/package.json +1 -1
- package/styles/gfm.scss +5 -0
- package/components/Style/index.tsx +0 -18
- package/dist/components/Style/index.d.ts +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { CustomComponents, IndexableElements } from '../../types';
|
|
1
|
+
import type { CustomComponents, IndexableElements, RMDXModule } from '../../types';
|
|
2
2
|
import type { Root } from 'hast';
|
|
3
3
|
import type { Transformer } from 'unified';
|
|
4
4
|
interface Options {
|
|
5
5
|
components?: CustomComponents;
|
|
6
6
|
}
|
|
7
7
|
export declare const rehypeToc: ({ components }: Options) => Transformer<Root, Root>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const tocHastToMdx: (toc: IndexableElements[], components: Record<string, RMDXModule["toc"]>) => string;
|
|
9
9
|
export {};
|
package/package.json
CHANGED
package/styles/gfm.scss
CHANGED
|
@@ -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;
|