File tree Expand file tree Collapse file tree
features/markdown-view/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export function AppMarkdownView({
5454 ) => {
5555 return (
5656 < CodeBlock
57- fenceStyle = { [ inheritedStyles , markdownStyles . fence ] }
57+ fenceStyle = { inheritedStyles }
5858 key = { `code-block-${ node . key } ` }
5959 sourceInfo = { node . sourceInfo }
6060 content = { node . content }
@@ -302,9 +302,4 @@ const markdownStyles = createStyles({
302302 backgroundColor : colorScheme . get ( ) === 'dark' ? colors . gray700 : colors . gray75 ,
303303 textDecorationLine : 'none' ,
304304 } ,
305- fence : {
306- backgroundColor : colorScheme . get ( ) === 'dark' ? colors . gray700 : colors . gray75 ,
307- borderRadius : 8 ,
308- padding : 12 ,
309- } ,
310305} ) ;
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ export function CodeBlock({
5656 return (
5757 < View className = 'gap-4' >
5858 { copyButton }
59- < AppText style = { fenceStyle } > { formattedContent } </ AppText >
59+ < AppText style = { fenceStyle } className = { 'bg-background-tertiary rounded-lg p-12' } >
60+ { formattedContent }
61+ </ AppText >
6062 </ View >
6163 ) ;
6264 }
You can’t perform that action at this time.
0 commit comments