@bitrise/bitkit 12.28.0 → 12.28.2
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
|
@@ -6,6 +6,7 @@ import ListItem from '../List/ListItem';
|
|
|
6
6
|
import Box from '../Box/Box';
|
|
7
7
|
import Divider from '../Divider/Divider';
|
|
8
8
|
import Text from '../Text/Text';
|
|
9
|
+
import CodeBlock from '../CodeBlock/CodeBlock';
|
|
9
10
|
|
|
10
11
|
const defaultComponents: Components = {
|
|
11
12
|
h1: ({ node, ...props }) => <Text size="6" {...props} />,
|
|
@@ -18,6 +19,12 @@ const defaultComponents: Components = {
|
|
|
18
19
|
hr: () => <Divider my="16" borderColor="separator.primary" size="2" />,
|
|
19
20
|
ul: ({ node, ordered, ...props }) => <List paddingBottom="8" {...props} />,
|
|
20
21
|
ol: ({ node, ordered, ...props }) => <List paddingBottom="8" isOrdered {...props} />,
|
|
22
|
+
code: ({ node, inline, ...props }) => {
|
|
23
|
+
if (inline) {
|
|
24
|
+
return <code {...props} />;
|
|
25
|
+
}
|
|
26
|
+
return <CodeBlock {...props} />;
|
|
27
|
+
},
|
|
21
28
|
li: ({ node, ordered, ...props }) => <ListItem {...props} />,
|
|
22
29
|
blockquote: ({ children }) => (
|
|
23
30
|
<Box
|