|
4 | 4 |
|
5 | 5 | <MetaTags PageUrl="@pageUrl" Title="@title" Description="@description" ImageUrl="@imageUrl" />
|
6 | 6 |
|
7 |
| -<h1>Blazor Markdown</h1> |
| 7 | +<h1>Blazor Markdown <Badge Color="BadgeColor.Secondary">Preview</Badge></h1> |
8 | 8 | <div class="lead mb-3">Use Blazor Bootstrap Markdown component to add formatting, tables, images, and more to your project pages.</div>
|
9 | 9 |
|
10 | 10 | <CarbonAds />
|
11 | 11 |
|
12 |
| -@* <SectionHeading Size="HeadingSize.H2" Text="Examples" PageUrl="@pageUrl" HashTagName="examples" /> |
| 12 | +<SectionHeading Size="HeadingSize.H2" Text="Live preview" PageUrl="@pageUrl" HashTagName="live-preview" /> |
13 | 13 | <div class="mb-3"></div>
|
14 |
| -<Demo Type="typeof(Markdown_Demo_01_Examples)" Tabs="true" /> *@ |
| 14 | +<Demo Type="typeof(Markdown_Demo_01_Preview)" Tabs="true" /> |
15 | 15 |
|
16 | 16 | <SectionHeading Size="HeadingSize.H2" Text="Headers" PageUrl="@pageUrl" HashTagName="headers" />
|
17 |
| -<div class="mb-3"></div> |
| 17 | +<div class="mb-3"> |
| 18 | + Use headers to structure your content. Start a line with <code>#</code> for a heading. Add more <code>#</code> characters for subheadings, up to six levels. |
| 19 | +</div> |
18 | 20 | <Demo Type="typeof(Markdown_Demo_02_Headers)" Tabs="true" />
|
19 | 21 |
|
20 | 22 | <SectionHeading Size="HeadingSize.H2" Text="Paragraphs and line breaks" PageUrl="@pageUrl" HashTagName="paragraphs-and-line-breaks" />
|
21 |
| -<div class="mb-3"></div> |
| 23 | +<div class="mb-3"> |
| 24 | + Break your text into paragraphs or line breaks for easier reading. |
| 25 | +</div> |
22 | 26 | <Demo Type="typeof(Markdown_Demo_03_Paragraphs_and_Line_Breaks)" Tabs="true" />
|
23 | 27 |
|
24 | 28 | <SectionHeading Size="HeadingSize.H2" Text="Blockquotes" PageUrl="@pageUrl" HashTagName="blockquotes" />
|
25 |
| -<div class="mb-3"></div> |
| 29 | +<div class="mb-3"> |
| 30 | + Quote text with <code>></code> before it. Use more <code>></code> characters to nest quotes. For blocks of text, use <code>></code> at the start of each line. |
| 31 | +</div> |
26 | 32 | <Demo Type="typeof(Markdown_Demo_04_Blockquotes)" Tabs="true" />
|
27 | 33 |
|
28 | 34 | <SectionHeading Size="HeadingSize.H2" Text="Horizontal rules" PageUrl="@pageUrl" HashTagName="horizontal-rules" />
|
29 |
| -<div class="mb-3"></div> |
| 35 | +<div class="mb-3"> |
| 36 | + Add a horizontal rule with a line of <code>---</code>. |
| 37 | +</div> |
30 | 38 | <Demo Type="typeof(Markdown_Demo_05_Horizontal_Rules)" Tabs="true" />
|
31 | 39 |
|
32 | 40 | <SectionHeading Size="HeadingSize.H2" Text="Emphasis (bold, italics, strikethrough)" PageUrl="@pageUrl" HashTagName="emphasis-bold-italics-strikethrough" />
|
33 |
| -<div class="mb-3"></div> |
| 41 | +<div class="mb-3"> |
| 42 | + Emphasize text with bold, italics, or strikethrough: |
| 43 | + <ul> |
| 44 | + <li>Italics: <code>*text*</code> or <code>_text_</code></li> |
| 45 | + <li>Bold: <code>**text**</code></li> |
| 46 | + <li>Strikethrough: <code>~~text~~</code></li> |
| 47 | + <li>Combine for more emphasis.</li> |
| 48 | + </ul> |
| 49 | +</div> |
34 | 50 | <Demo Type="typeof(Markdown_Demo_06_Emphasis_bold_italics_strikethrough)" Tabs="true" />
|
35 | 51 |
|
36 | 52 | <SectionHeading Size="HeadingSize.H2" Text="Code highlighting" PageUrl="@pageUrl" HashTagName="code-highlighting" />
|
37 | 53 | <div class="mb-3"></div>
|
38 | 54 | <Demo Type="typeof(Markdown_Demo_07_Code_Highlighting)" Tabs="true" />
|
39 | 55 |
|
| 56 | +<SectionHeading Size="HeadingSize.H2" Text="Tables" PageUrl="@pageUrl" HashTagName="tables" /> |
| 57 | +<div class="mb-3"> |
| 58 | + Tables help organize structured data. |
| 59 | + <ul> |
| 60 | + <li>Use <code>|</code> to separate cells.</li> |
| 61 | + <li>Escape <code>|</code> with <code>\|</code> if used within a cell.</li> |
| 62 | + <li>Use <code><br /></code> for new lines within a cell.</li> |
| 63 | + <li>End each row with a carriage return (CR) or line feed (LF).</li> |
| 64 | + </ul> |
| 65 | +</div> |
| 66 | +<Demo Type="typeof(Markdown_Demo_08_Tables_A_Example)" Tabs="true" /> |
| 67 | +<div class="mb-3"></div> |
| 68 | +<Demo Type="typeof(Markdown_Demo_08_Tables_B_Custom_CssClass)" Tabs="true" /> |
| 69 | + |
| 70 | +<SectionHeading Size="HeadingSize.H2" Text="Lists" PageUrl="@pageUrl" HashTagName="lists" /> |
| 71 | +<div class="mb-3"> |
| 72 | + Use lists to organize related items: |
| 73 | + <ul> |
| 74 | + <li>Ordered lists: start with a number followed by a period.</li> |
| 75 | + <li>Unordered lists: start with a <code>-</code>.</li> |
| 76 | + <li>Begin each list item on a new line.</li> |
| 77 | + </ul> |
| 78 | +</div> |
| 79 | +<SectionHeading Size="HeadingSize.H3" Text="Ordered list" PageUrl="@pageUrl" HashTagName="ordered-list" /> |
| 80 | +<div class="mb-3"></div> |
| 81 | +<Demo Type="typeof(Markdown_Demo_09_Lists_A_Ordered)" Tabs="true" /> |
| 82 | + |
| 83 | +<SectionHeading Size="HeadingSize.H3" Text="Unordered list" PageUrl="@pageUrl" HashTagName="unordered-list" /> |
| 84 | +<div class="mb-3"></div> |
| 85 | +<Demo Type="typeof(Markdown_Demo_09_Lists_B_Unordered)" Tabs="true" /> |
| 86 | + |
| 87 | +<SectionHeading Size="HeadingSize.H3" Text="Nested list" PageUrl="@pageUrl" HashTagName="nested-list" /> |
| 88 | +<div class="mb-3"></div> |
| 89 | +<Demo Type="typeof(Markdown_Demo_09_Lists_C_Nested)" Tabs="true" /> |
| 90 | +<div class="mb-3"></div> |
| 91 | +<Demo Type="typeof(Markdown_Demo_09_Lists_D_Nested)" Tabs="true" /> |
| 92 | +<div class="mb-3"></div> |
| 93 | +<Demo Type="typeof(Markdown_Demo_09_Lists_E_Nested)" Tabs="true" /> |
| 94 | + |
| 95 | +<SectionHeading Size="HeadingSize.H2" Text="Links" PageUrl="@pageUrl" HashTagName="links" /> |
| 96 | +<div class="mb-3"></div> |
| 97 | +<Demo Type="typeof(Markdown_Demo_10_Links)" Tabs="true" /> |
| 98 | + |
| 99 | +<SectionHeading Size="HeadingSize.H2" Text="Images" PageUrl="@pageUrl" HashTagName="images" /> |
| 100 | +<div class="mb-3"></div> |
| 101 | +<Demo Type="typeof(Markdown_Demo_11_Images)" Tabs="true" /> |
| 102 | + |
| 103 | +<SectionHeading Size="HeadingSize.H2" Text="Examples" PageUrl="@pageUrl" HashTagName="examples" /> |
| 104 | +<div class="mb-3"></div> |
| 105 | +<Demo Type="typeof(Markdown_Demo_99_Examples)" Tabs="true" /> |
| 106 | + |
40 | 107 | @code{
|
41 | 108 | private string pageUrl = "/markdown";
|
42 | 109 | private string title = "Blazor Markdown Component";
|
|
0 commit comments