@@ -200,6 +200,23 @@ export const renderText = <
200200 color : colors . accent_blue ,
201201 ...markdownStyles ?. autolink ,
202202 } ,
203+ blockQuoteText : {
204+ ...defaultMarkdownStyles . blockQuoteText ,
205+ ...markdownStyles ?. blockQuoteText ,
206+ } ,
207+ blockQuoteSection : {
208+ ...defaultMarkdownStyles . blockQuoteSection ,
209+ flexDirection : 'row' ,
210+ padding : 8 ,
211+ ...markdownStyles ?. blockQuoteSection ,
212+ } ,
213+ blockQuoteSectionBar : {
214+ ...defaultMarkdownStyles . blockQuoteSectionBar ,
215+ width : 2 ,
216+ backgroundColor : colors . grey_gainsboro ,
217+ marginRight : 8 ,
218+ ...markdownStyles ?. blockQuoteSectionBar ,
219+ } ,
203220 codeBlock : {
204221 ...defaultMarkdownStyles . codeBlock ,
205222 backgroundColor : colors . code_block ,
@@ -398,6 +415,13 @@ export const renderText = <
398415 </ MarkdownReactiveScrollView >
399416 ) ;
400417
418+ const blockQuoteReact : ReactNodeOutput = ( node , output , state ) => (
419+ < View key = { state . key } style = { styles . blockQuoteSection } >
420+ < View style = { styles . blockQuoteSectionBar } />
421+ < View style = { styles . blockQuoteText } > { output ( node . content , state ) } </ View >
422+ </ View >
423+ ) ;
424+
401425 const customRules = {
402426 // do not render images, we will scrape them out of the message and show on attachment card component
403427 image : { match : ( ) => null } ,
@@ -420,6 +444,9 @@ export const renderText = <
420444 : { } ) ,
421445 codeBlock : { react : codeBlockReact } ,
422446 table : { react : tableReact } ,
447+ blockQuote : {
448+ react : blockQuoteReact ,
449+ } ,
423450 } ;
424451
425452 return (
0 commit comments