A simple to code and use line based Markup language making much use of brackets within a line and with start of line monikers for whole of line impact: A test console app that inputs some sample Meltdown text and shows the generated HTML code.


GitHub Code Repository

This implements the Meltdown to HTML parser as well as some sample code:
djaus2/Meltdown

Meltdown V2.1.0 is now available as Nuget package and can be used with any .NET 5.0 apps.
https://www.nuget.org/packages/Meltdown/


Console Test App Output:


[[1]]Heading Level 1

<h1>Heading Level 1</h1>

AA[[This is Bold]]BB

<p>AA<b>This is Bold</b>BB</p>

AA((This is Italics))BB

<p>AA<i>This is Italics</i>BB</p>

AA{{This is underline}}BB

<p>AA<u>This is Underline</u>BB</p>

AA((red|This is red))BB((blue|This is blue))CC

<p>AA<font color="Red">This is red</font>BB<font color="Blue">This is blue</font>CC</p>

AA[({This is bold italics and underline})]BB

<p>AA<b><i><u>This is bold italics and underline</u></i></b>BB</p>

AA<<https://sportronics.com.au>>BB

<p>AA<a href= "https://sportronics.com.au">https://sportronics.com.au</a>BB</p>

AA<<Click here|https://sportronics.com.au>>BB

<p>AA<a href= "https://sportronics.com.au">Click here</a>BB</p>

The Rendered HTML for that:

Heading Level 1

AAThis is BoldBB

AAThis is ItalicsBB

AAhttps://sportronics.com.auBB

AAClick hereBB


Meltdown Text (Simple List):

- Simple list line one
-       Simple list line 2 with tab
- Simple list line three
-       Simple list line 4 with tab

The generated HTML code:

<ul>
<li>Simple list line one</li>
<li>Simple list line 2 with tab</li>
<li>Simple list line three</li>
<li>Simple list line 4 with tab</li>
</ul>

The Meltdown Text (Extended List):

((1)) Extended list level one
((1)) Extended list level 1
((2)) Extended list level two
((3)) Extended list level three
((2)) Extended list level two
((1)) Extended list level one

The generated HTML code:

<ul>
<li> Extended list level one
</li>
<li> Extended list level 1
<ul>
<li> Extended list level two
<ul>
<li> Extended list level three
</ul></li>
<li> Extended list level two</li>
</ul></li>
<li> Extended list level one</li>
</ul>

The Meltdown Text (Table):

((T))Name,Age,Country
((t))Fred,23,Australia
((t))Sue,45,USA
((t))John,21,NZ

The generated HTML code:

   
<table>
<th><td>Name</td><td>Age</td><td>Country</td></th>
<tr><td>Fred</td><td>23</td><td>Australia</td></tr>
<tr><td>Sue</td><td>45</td><td>USA</td></tr>
<tr><td>John</td><td>21</td><td>NZ</td></tr>
</table

Next: The Blazor Test App


 TopicSubtopic
   
 This Category Links 
Category:Web Sites Index:Web Sites
  Next: > Meltdown
<  Prev:   Meltdown