File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const ChakraMarkdown = React.memo<any>(({ content }) => {
18
18
) ,
19
19
code : ( { inline, children, className } ) => {
20
20
const language = className ? className . replace ( 'language-' , '' ) : 'plaintext' ;
21
- const code = String ( children ) ;
21
+ const code = String ( children ) . trim ( ) ;
22
22
if ( inline ) {
23
23
return < Text as = "code" bg = { useColorModeValue ( "gray.100" , "gray.700" ) } p = "1" borderRadius = "md" > { code } </ Text > ;
24
24
}
@@ -40,6 +40,10 @@ const ChakraMarkdown = React.memo<any>(({ content }) => {
40
40
scrollBeyondLastLine : false ,
41
41
lineNumbers : "off" ,
42
42
scrollbar : { vertical : 'hidden' } ,
43
+ overviewRulerLanes : 0 , // Disable the overview ruler
44
+ hideCursorInOverviewRuler : true , // Hide cursor in the ruler
45
+ folding : false , // Disable code folding
46
+ glyphMargin : false , // Hide the glyph margin (left margin with icons)
43
47
} }
44
48
/>
45
49
</ Box >
You can’t perform that action at this time.
0 commit comments