Skip to content

Commit f3f0057

Browse files
committed
code blocks
1 parent 8681d5c commit f3f0057

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,37 @@ This guide details the initial setup and basic usage of the [SfMarkdownViewer]()
88
2. Add an [SfMarkdownViewer]() instance to your page.
99
3. To display Markdown content, assign a string to the `Source` property of the SfMarkdownViewer control. This string can contain standard Markdown syntax such as headings, bold text, lists, and images.
1010

11-
{% tabs %}
12-
{% highlight xaml %}
11+
#### XAML
1312

13+
```xaml
1414
<markdown:SfMarkdownViewer>
1515
<markdown:SfMarkdownViewer.Source>
1616
<x:String>
1717
<![CDATA[
18-
# What is Markdown Viewer?
19-
Markdown View is a UI control in .NET MAUI that allows developers to render Markdown content with full formatting support. It is designed to work efficiently across both mobile and desktop platforms. The viewer supports headings, bold and italic text, lists, tables, images, code blocks, etc.
18+
# What is Markdown Viewer?
19+
Markdown View is a UI control in .NET MAUI that allows developers to render Markdown content with full formatting support. It is designed to work efficiently across both mobile and desktop platforms. The viewer supports headings, bold and italic text, lists, tables, images, code blocks, etc.
2020
21-
# Header 1
22-
Used for the main title or top-level heading in a Markdown document.
21+
# Header 1
22+
Used for the main title or top-level heading in a Markdown document.
2323
24-
## Header 2
25-
Used to define major sections within your Markdown content.
24+
## Header 2
25+
Used to define major sections within your Markdown content.
2626
27-
## Table
27+
## Table
2828
29-
| | Column 1 | Column 2 | Column 3 |
30-
|--------------|----------|----------|----------|
31-
| Row 1 | Content | Content | Content |
32-
| Row 2 | Content | Content | Content |
33-
| Row 3 | Content | Content | Content |
29+
| | Column 1 | Column 2 | Column 3 |
30+
|--------------|----------|----------|----------|
31+
| Row 1 | Content | Content | Content |
32+
| Row 2 | Content | Content | Content |
33+
| Row 3 | Content | Content | Content |
3434
]]>
3535
</x:String>
3636
</markdown:SfMarkdownViewer.Source>
3737
</markdown:SfMarkdownViewer>
38+
```
39+
#### C#
3840

39-
{% endhighlight %}
40-
41-
{% highlight C# %}
42-
41+
```C#
4342
public partial class MainPage : ContentPage
4443
{
4544
private const string markdownContent = @"# What is Markdown Viewer?
@@ -67,9 +66,7 @@ This guide details the initial setup and basic usage of the [SfMarkdownViewer]()
6766
Content = markdownViewer;
6867
}
6968
}
70-
71-
{% endhighlight %}
72-
{% endtabs %}
69+
```
7370

7471
## Output
7572
[Output]

0 commit comments

Comments
 (0)