File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
components/MarkdownTextBlock/src/TextElements Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public MyCodeBlock(CodeBlock codeBlock, MarkdownConfig config)
30
30
border . CornerRadius = _config . Themes . CornerRadius ;
31
31
var richTextBlock = new RichTextBlock ( ) ;
32
32
33
+ #if false
33
34
if ( codeBlock is FencedCodeBlock fencedCodeBlock )
34
35
{
35
36
//#if !WINAPPSDK
@@ -68,17 +69,19 @@ public MyCodeBlock(CodeBlock codeBlock, MarkdownConfig config)
68
69
}
69
70
else
70
71
{
71
- foreach ( var line in codeBlock . Lines . Lines )
72
+ #endif
73
+
74
+ foreach ( var line in codeBlock . Lines . Lines )
75
+ {
76
+ var paragraph = new Paragraph ( ) ;
77
+ var lineString = line . ToString ( ) ;
78
+ if ( ! String . IsNullOrWhiteSpace ( lineString ) )
72
79
{
73
- var paragraph = new Paragraph ( ) ;
74
- var lineString = line . ToString ( ) ;
75
- if ( ! String . IsNullOrWhiteSpace ( lineString ) )
76
- {
77
- paragraph . Inlines . Add ( new Run ( ) { Text = lineString } ) ;
78
- }
79
- richTextBlock . Blocks . Add ( paragraph ) ;
80
+ paragraph . Inlines . Add ( new Run ( ) { Text = lineString } ) ;
80
81
}
82
+ richTextBlock . Blocks . Add ( paragraph ) ;
81
83
}
84
+
82
85
border . Child = richTextBlock ;
83
86
container . Child = border ;
84
87
_paragraph . Inlines . Add ( container ) ;
You can’t perform that action at this time.
0 commit comments