@readme/markdown 8.0.1 → 8.1.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/CodeTabs/style.scss +9 -7
- package/components/Style/index.tsx +18 -0
- package/components/TailwindRoot/index.tsx +9 -0
- package/components/index.ts +2 -0
- package/dist/10.node.js +2 -1
- package/dist/10.node.js.map +1 -0
- package/dist/11.node.js +2 -1
- package/dist/11.node.js.map +1 -0
- package/dist/120.node.js +2 -1
- package/dist/120.node.js.map +1 -0
- package/dist/134.node.js +2 -1
- package/dist/134.node.js.map +1 -0
- package/dist/150.node.js +2 -1
- package/dist/150.node.js.map +1 -0
- package/dist/17.node.js +2 -1
- package/dist/17.node.js.map +1 -0
- package/dist/246.node.js +2 -1
- package/dist/246.node.js.map +1 -0
- package/dist/351.node.js +2 -1
- package/dist/351.node.js.map +1 -0
- package/dist/366.node.js +2 -1
- package/dist/366.node.js.map +1 -0
- package/dist/403.node.js +2 -1
- package/dist/403.node.js.map +1 -0
- package/dist/429.node.js +2 -1
- package/dist/429.node.js.map +1 -0
- package/dist/485.node.js +2 -1
- package/dist/485.node.js.map +1 -0
- package/dist/486.node.js +2 -1
- package/dist/486.node.js.map +1 -0
- package/dist/488.node.js +2 -1
- package/dist/488.node.js.map +1 -0
- package/dist/489.node.js +2 -1
- package/dist/489.node.js.map +1 -0
- package/dist/510.node.js +2 -1
- package/dist/510.node.js.map +1 -0
- package/dist/52.node.js +2 -1
- package/dist/52.node.js.map +1 -0
- package/dist/550.node.js +2 -1
- package/dist/550.node.js.map +1 -0
- package/dist/551.node.js +2 -1
- package/dist/551.node.js.map +1 -0
- package/dist/617.node.js +2 -1
- package/dist/617.node.js.map +1 -0
- package/dist/687.node.js +2 -1
- package/dist/687.node.js.map +1 -0
- package/dist/745.node.js +2 -1
- package/dist/745.node.js.map +1 -0
- package/dist/775.node.js +2 -1
- package/dist/775.node.js.map +1 -0
- package/dist/786.node.js +2 -1
- package/dist/786.node.js.map +1 -0
- package/dist/788.node.js +2 -1
- package/dist/788.node.js.map +1 -0
- package/dist/81.node.js +2 -1
- package/dist/81.node.js.map +1 -0
- package/dist/849.node.js +2 -1
- package/dist/849.node.js.map +1 -0
- package/dist/863.node.js +2 -1
- package/dist/863.node.js.map +1 -0
- package/dist/867.node.js +2 -1
- package/dist/867.node.js.map +1 -0
- package/dist/881.node.js +2 -1
- package/dist/881.node.js.map +1 -0
- package/dist/885.node.js +2 -1
- package/dist/885.node.js.map +1 -0
- package/dist/896.node.js +2 -1
- package/dist/896.node.js.map +1 -0
- package/dist/906.node.js +2 -1
- package/dist/906.node.js.map +1 -0
- package/dist/91.node.js +2 -1
- package/dist/91.node.js.map +1 -0
- package/dist/940.node.js +2 -1
- package/dist/940.node.js.map +1 -0
- package/dist/952.node.js +2 -1
- package/dist/952.node.js.map +1 -0
- package/dist/995.node.js +2 -1
- package/dist/995.node.js.map +1 -0
- package/dist/components/Style/index.d.ts +6 -0
- package/dist/components/TailwindRoot/index.d.ts +6 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/example/components.d.ts +7 -0
- package/dist/lib/compile.d.ts +2 -1
- package/dist/lib/run.d.ts +1 -0
- package/dist/lib/styles.d.ts +2 -0
- package/dist/main.css +3 -1
- package/dist/main.css.map +1 -0
- package/dist/main.js +37233 -32282
- package/dist/main.node.js +20214 -11759
- package/dist/main.node.js.map +1 -0
- package/dist/processor/transform/index.d.ts +2 -1
- package/dist/processor/transform/tailwind.d.ts +6 -0
- package/dist/processor/utils.d.ts +15 -1
- package/dist/utils/tailwind-bundle.d.ts +5 -0
- package/package.json +8 -5
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@import '~codemirror/theme/neo.css';
|
|
3
3
|
|
|
4
4
|
@mixin CodeTabs {
|
|
5
|
-
$bgc-pre: #
|
|
6
|
-
$bgc-pre-dark: #
|
|
5
|
+
$bgc-pre: #f6f8fa;
|
|
6
|
+
$bgc-pre-dark: #242e34;
|
|
7
7
|
$bgc-bar: darken(desaturate($bgc-pre, 17.46), 4.31);
|
|
8
8
|
$bgc-bar-dark: lighten(desaturate($bgc-pre-dark, 17.46), 4.31);
|
|
9
9
|
$radius: var(--md-code-radius, var(--markdown-radius, 3px));
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
}
|
|
37
37
|
button {
|
|
38
38
|
white-space: nowrap;
|
|
39
|
-
transition: .123s ease;
|
|
39
|
+
transition: 0.123s ease;
|
|
40
40
|
-webkit-appearance: none;
|
|
41
41
|
appearance: none;
|
|
42
42
|
display: inline-block;
|
|
43
43
|
line-height: 2;
|
|
44
|
-
padding: .5em 1em;
|
|
44
|
+
padding: 0.5em 1em;
|
|
45
45
|
border: none;
|
|
46
46
|
background: transparent;
|
|
47
47
|
outline: none;
|
|
48
48
|
color: inherit;
|
|
49
49
|
font: inherit;
|
|
50
|
-
font-size: .75em;
|
|
50
|
+
font-size: 0.75em;
|
|
51
51
|
cursor: pointer;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&-toolbar button:not(.CodeTabs_active):hover {
|
|
73
|
-
background: rgba(0, 0, 0, .075);
|
|
73
|
+
background: rgba(0, 0, 0, 0.075);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
pre {
|
|
@@ -78,7 +78,9 @@
|
|
|
78
78
|
background: $bgc-pre;
|
|
79
79
|
background: var(--md-code-background, $bgc-pre);
|
|
80
80
|
margin-bottom: 0;
|
|
81
|
-
&:not(.CodeTabs_active) {
|
|
81
|
+
&:not(.CodeTabs_active) {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
&.theme-dark pre {
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
package/components/index.ts
CHANGED
|
@@ -10,6 +10,8 @@ export { default as Glossary } from './Glossary';
|
|
|
10
10
|
export { default as HTMLBlock } from './HTMLBlock';
|
|
11
11
|
export { default as Heading } from './Heading';
|
|
12
12
|
export { default as Image } from './Image';
|
|
13
|
+
export { default as Style } from './Style';
|
|
13
14
|
export { default as Table } from './Table';
|
|
14
15
|
export { default as Tabs, Tab } from './Tabs';
|
|
15
16
|
export { default as TableOfContents } from './TableOfContents';
|
|
17
|
+
export { default as TailwindRoot } from './TailwindRoot';
|
package/dist/10.node.js
CHANGED
|
@@ -22718,4 +22718,5 @@ exports["default"] = RAL;
|
|
|
22718
22718
|
/***/ })
|
|
22719
22719
|
|
|
22720
22720
|
};
|
|
22721
|
-
;
|
|
22721
|
+
;
|
|
22722
|
+
//# sourceMappingURL=10.node.js.map
|