File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/dashboard-core-plugins/src Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,16 @@ interface MarkdownEditorProps {
13
13
}
14
14
15
15
const renderMarkdown : CodeComponent = props => {
16
- const { children, className } = props ;
16
+ const { children, inline, className } = props ;
17
+ if ( inline === true ) {
18
+ return (
19
+ < code >
20
+ { React . Children . map ( children , child =>
21
+ typeof child === 'string' ? child . trim ( ) : child
22
+ ) }
23
+ </ code >
24
+ ) ;
25
+ }
17
26
const language =
18
27
className !== undefined && className ?. startsWith ( 'language-' )
19
28
? className . substring ( 9 )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ $panel-container-padding: 10px;
36
36
code {
37
37
color : $foreground ;
38
38
background : $gray-700 ;
39
- padding : 2 px $spacer-2 ;
39
+ padding : 0.2 em ;
40
40
border-radius : $border-radius ;
41
41
border : 1px solid $black ;
42
42
}
You can’t perform that action at this time.
0 commit comments