zs-starter-template/TestPage.html
2024-03-03 05:40:13 +00:00

937 lines
42 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/assets/css/bahunya.css">
<link rel="stylesheet" href="/assets/css/board.css">
<link rel="stylesheet" href="/assets/css/highlight.css">
<link rel="stylesheet" href="/assets/css/site.css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<title>Markdown Syntax</title>
<meta name="title" content="Markdown Syntax" />
<meta name="description" content="Basic Markdown Syntax and Test Page" />
<meta name="keywords" content="zen, static, zs, starter, template, site, website, template, generator, ssg" />
</head>
<body>
<nav>
<a id="brand" href="/">Home 🏠</a>
<a href="/TestPage.html">Test Page 🧪</a>
<a href="https://zs.mills.io/">Demo 🥳</a>
<a href="https://git.mills.io/prologic/zs">Source 💾</a>
</nav>
<header>
<h1>Markdown Syntax</h1>
</header>
<aside><p><strong>On this page</strong></p>
</aside>
<article><h1 id="overview">Overview <a class="anchor" href="#overview"> </a></h1>
<p>Nearly all Markdown applications support the basic syntax outlined in the original Markdown design document. There are minor variations and discrepancies between Markdown processors — those are noted inline wherever possible.</p>
<h2 id="headings">Headings <a class="anchor" href="#headings"> </a></h2>
<p>To create a heading, add number signs (<code>#</code>) in front of a word or phrase. The number of number signs you use should correspond to the heading level. For example, to create a heading level three (<code>&lt;h3&gt;</code>), use three number signs (e.g., <code>### My Header</code>).</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code># Heading level 1</code></td>
<td><code>&lt;h1&gt;Heading level 1&lt;/h1&gt;</code></td>
<td>Heading level 1</td>
</tr>
<tr>
<td><code>## Heading level 2</code></td>
<td><code>&lt;h2&gt;Heading level 2&lt;/h2&gt;</code></td>
<td>Heading level 2</td>
</tr>
<tr>
<td><code>### Heading level 3</code></td>
<td><code>&lt;h3&gt;Heading level 3&lt;/h3&gt;</code></td>
<td>Heading level 3</td>
</tr>
<tr>
<td><code>#### Heading level 4</code></td>
<td><code>&lt;h4&gt;Heading level 4&lt;/h4&gt;</code></td>
<td>Heading level 4</td>
</tr>
<tr>
<td><code>##### Heading level 5</code></td>
<td><code>&lt;h5&gt;Heading level 5&lt;/h5&gt;</code></td>
<td>Heading level 5</td>
</tr>
<tr>
<td><code>###### Heading level 6</code></td>
<td><code>&lt;h6&gt;Heading level 6&lt;/h6&gt;</code></td>
<td>Heading level 6</td>
</tr>
</tbody>
</table>
<h3 id="alternate-syntax">Alternate Syntax <a class="anchor" href="#alternate-syntax"> </a></h3>
<p>Alternatively, on the line below the text, add any number of <code>==</code> characters for heading level 1 or <code>--</code> characters for heading level 2.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Heading level 1===============</code></td>
<td><code>&lt;h1&gt;Heading level 1&lt;/h1&gt;</code></td>
<td>Heading level 1</td>
</tr>
<tr>
<td><code>Heading level 2---------------</code></td>
<td><code>&lt;h2&gt;Heading level 2&lt;/h2&gt;</code></td>
<td>Heading level 2</td>
</tr>
</tbody>
</table>
<h3 id="heading-best-practices">Heading Best Practices <a class="anchor" href="#heading-best-practices"> </a></h3>
<p>Markdown applications dont agree on how to handle a missing space between the number signs (<code>#</code>) and the heading name. For compatibility, always put a space between the number signs and the heading name.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code># Here's a Heading</code></td>
<td><code>#Here's a Heading</code></td>
</tr>
</tbody>
</table>
<p>You should also put blank lines before and after a heading for compatibility.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Try to put a blank line before...# Heading...and after a heading.</code></td>
<td><code>Without blank lines, this might not look right.# HeadingDon't do this!</code></td>
</tr>
</tbody>
</table>
<h2 id="paragraphs">Paragraphs <a class="anchor" href="#paragraphs"> </a></h2>
<p>To create paragraphs, use a blank line to separate one or more lines of text.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>I really like using Markdown.I think I'll use it to format all of my documents from now on.</code></td>
<td><code>&lt;p&gt;I really like using Markdown.&lt;/p&gt;&lt;p&gt;I think I'll use it to format all of my documents from now on.&lt;/p&gt;</code></td>
<td>I really like using Markdown.I think I&rsquo;ll use it to format all of my documents from now on.</td>
</tr>
</tbody>
</table>
<h3 id="paragraph-best-practices">Paragraph Best Practices <a class="anchor" href="#paragraph-best-practices"> </a></h3>
<p>Unless the <a href="https://www.markdownguide.org/basic-syntax/#paragraphs">paragraph is in a list</a>, dont indent paragraphs with spaces or tabs.</p>
<p><strong>Note:</strong> If you need to indent paragraphs in the output, see the section on how to <a href="https://www.markdownguide.org/hacks/#indent-tab">indent (tab)</a>.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Don't put tabs or spaces in front of your paragraphs.Keep lines left-aligned like this.</code></td>
<td><code> This can result in unexpected formatting problems. Don't add tabs or spaces in front of paragraphs.</code></td>
</tr>
</tbody>
</table>
<h2 id="line-breaks">Line Breaks <a class="anchor" href="#line-breaks"> </a></h2>
<p>To create a line break or new line (<code>&lt;br&gt;</code>), end a line with two or more spaces, and then type return.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>This is the first line. And this is the second line.</code></td>
<td><code>&lt;p&gt;This is the first line.&lt;br&gt;And this is the second line.&lt;/p&gt;</code></td>
<td>This is the first line. And this is the second line.</td>
</tr>
</tbody>
</table>
<h3 id="line-break-best-practices">Line Break Best Practices <a class="anchor" href="#line-break-best-practices"> </a></h3>
<p>You can use two or more spaces (commonly referred to as “trailing whitespace”) for line breaks in nearly every Markdown application, but its controversial. Its hard to see trailing whitespace in an editor, and many people accidentally or intentionally put two spaces after every sentence. For this reason, you may want to use something other than trailing whitespace for line breaks. If your Markdown application <a href="https://www.markdownguide.org/basic-syntax/#html">supports HTML</a>, you can use the <code>&lt;br&gt;</code> HTML tag.</p>
<p>For compatibility, use trailing white space or the <code>&lt;br&gt;</code> HTML tag at the end of the line.</p>
<p>There are two other options I dont recommend using. CommonMark and a few other lightweight markup languages let you type a backslash (<code>\</code>) at the end of the line, but not all Markdown applications support this, so it isnt a great option from a compatibility perspective. And at least a couple lightweight markup languages dont require anything at the end of the line — just type return and theyll create a line break.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>First line with two spaces after. And the next line.First line with the HTML tag after.&lt;br&gt;And the next line.</code></td>
<td><code>First line with a backslash after.\And the next line.First line with nothing after.And the next line.</code></td>
</tr>
</tbody>
</table>
<h2 id="emphasis">Emphasis <a class="anchor" href="#emphasis"> </a></h2>
<p>You can add emphasis by making text bold or italic.</p>
<h3 id="bold">Bold <a class="anchor" href="#bold"> </a></h3>
<p>To bold text, add two asterisks or underscores before and after a word or phrase. To bold the middle of a word for emphasis, add two asterisks without spaces around the letters.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>I just love **bold text**.</code></td>
<td><code>I just love &lt;strong&gt;bold text&lt;/strong&gt;.</code></td>
<td>I just love <strong>bold text</strong>.</td>
</tr>
<tr>
<td><code>I just love __bold text__.</code></td>
<td><code>I just love &lt;strong&gt;bold text&lt;/strong&gt;.</code></td>
<td>I just love <strong>bold text</strong>.</td>
</tr>
<tr>
<td><code>Love**is**bold</code></td>
<td><code>Love&lt;strong&gt;is&lt;/strong&gt;bold</code></td>
<td>Love<strong>is</strong>bold</td>
</tr>
</tbody>
</table>
<h4 id="bold-best-practices">Bold Best Practices <a class="anchor" href="#bold-best-practices"> </a></h4>
<p>Markdown applications dont agree on how to handle underscores in the middle of a word. For compatibility, use asterisks to bold the middle of a word for emphasis.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Love**is**bold</code></td>
<td><code>Love__is__bold</code></td>
</tr>
</tbody>
</table>
<h3 id="italic">Italic <a class="anchor" href="#italic"> </a></h3>
<p>To italicize text, add one asterisk or underscore before and after a word or phrase. To italicize the middle of a word for emphasis, add one asterisk without spaces around the letters.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Italicized text is the *cat's meow*.</code></td>
<td><code>Italicized text is the &lt;em&gt;cat's meow&lt;/em&gt;.</code></td>
<td>Italicized text is the <em>cats meow</em>.</td>
</tr>
<tr>
<td><code>Italicized text is the _cat's meow_.</code></td>
<td><code>Italicized text is the &lt;em&gt;cat's meow&lt;/em&gt;.</code></td>
<td>Italicized text is the <em>cats meow</em>.</td>
</tr>
<tr>
<td><code>A*cat*meow</code></td>
<td><code>A&lt;em&gt;cat&lt;/em&gt;meow</code></td>
<td>A<em>cat</em>meow</td>
</tr>
</tbody>
</table>
<h4 id="italic-best-practices">Italic Best Practices <a class="anchor" href="#italic-best-practices"> </a></h4>
<p>Markdown applications dont agree on how to handle underscores in the middle of a word. For compatibility, use asterisks to italicize the middle of a word for emphasis.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>A*cat*meow</code></td>
<td><code>A_cat_meow</code></td>
</tr>
</tbody>
</table>
<h3 id="bold-and-italic">Bold and Italic <a class="anchor" href="#bold-and-italic"> </a></h3>
<p>To emphasize text with bold and italics at the same time, add three asterisks or underscores before and after a word or phrase. To bold and italicize the middle of a word for emphasis, add three asterisks without spaces around the letters.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>This text is ***really important***.</code></td>
<td><code>This text is &lt;em&gt;&lt;strong&gt;really important&lt;/strong&gt;&lt;/em&gt;.</code></td>
<td>This text is <em><strong>really important</strong></em>.</td>
</tr>
<tr>
<td><code>This text is ___really important___.</code></td>
<td><code>This text is &lt;em&gt;&lt;strong&gt;really important&lt;/strong&gt;&lt;/em&gt;.</code></td>
<td>This text is <em><strong>really important</strong></em>.</td>
</tr>
<tr>
<td><code>This text is __*really important*__.</code></td>
<td><code>This text is &lt;em&gt;&lt;strong&gt;really important&lt;/strong&gt;&lt;/em&gt;.</code></td>
<td>This text is <em><strong>really important</strong></em>.</td>
</tr>
<tr>
<td><code>This text is **_really important_**.</code></td>
<td><code>This text is &lt;em&gt;&lt;strong&gt;really important&lt;/strong&gt;&lt;/em&gt;.</code></td>
<td>This text is <em><strong>really important</strong></em>.</td>
</tr>
<tr>
<td><code>This is really***very***important text.</code></td>
<td><code>This is really&lt;em&gt;&lt;strong&gt;very&lt;/strong&gt;&lt;/em&gt;important text.</code></td>
<td>This is really<em><strong>very</strong></em>important text.</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> The order of the <code>em</code> and <code>strong</code> tags might be reversed depending on the Markdown processor you&rsquo;re using.</p>
<h4 id="bold-and-italic-best-practices">Bold and Italic Best Practices <a class="anchor" href="#bold-and-italic-best-practices"> </a></h4>
<p>Markdown applications dont agree on how to handle underscores in the middle of a word. For compatibility, use asterisks to bold and italicize the middle of a word for emphasis.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>This is really***very***important text.</code></td>
<td><code>This is really___very___important text.</code></td>
</tr>
</tbody>
</table>
<h2 id="blockquotes">Blockquotes <a class="anchor" href="#blockquotes"> </a></h2>
<p>To create a blockquote, add a <code>&gt;</code> in front of a paragraph.</p>
<pre><code>&gt; Dorothy followed her through many of the beautiful rooms in her castle.
</code></pre>
<p>The rendered output looks like this:</p>
<blockquote>
<p>Dorothy followed her through many of the beautiful rooms in her castle.</p>
</blockquote>
<h3 id="blockquotes-with-multiple-paragraphs">Blockquotes with Multiple Paragraphs <a class="anchor" href="#blockquotes-with-multiple-paragraphs"> </a></h3>
<p>Blockquotes can contain multiple paragraphs. Add a <code>&gt;</code> on the blank lines between the paragraphs.</p>
<pre><code>&gt; Dorothy followed her through many of the beautiful rooms in her castle.
&gt;
&gt; The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
</code></pre>
<p>The rendered output looks like this:</p>
<blockquote>
<p>Dorothy followed her through many of the beautiful rooms in her castle.</p>
<p>The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.</p>
</blockquote>
<h3 id="nested-blockquotes">Nested Blockquotes <a class="anchor" href="#nested-blockquotes"> </a></h3>
<p>Blockquotes can be nested. Add a <code>&gt;&gt;</code> in front of the paragraph you want to nest.</p>
<pre><code>&gt; Dorothy followed her through many of the beautiful rooms in her castle.
&gt;
&gt;&gt; The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
</code></pre>
<p>The rendered output looks like this:</p>
<blockquote>
<p>Dorothy followed her through many of the beautiful rooms in her castle.</p>
<blockquote>
<p>The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.</p>
</blockquote>
</blockquote>
<h3 id="blockquotes-with-other-elements">Blockquotes with Other Elements <a class="anchor" href="#blockquotes-with-other-elements"> </a></h3>
<p>Blockquotes can contain other Markdown formatted elements. Not all elements can be used — youll need to experiment to see which ones work.</p>
<pre><code>&gt; #### The quarterly results look great!
&gt;
&gt; - Revenue was off the chart.
&gt; - Profits were higher than ever.
&gt;
&gt; *Everything* is going according to **plan**.
</code></pre>
<p>The rendered output looks like this:</p>
<blockquote>
<h4 id="the-quarterly-results-look-great">The quarterly results look great! <a class="anchor" href="#the-quarterly-results-look-great"> </a></h4>
<ul>
<li>Revenue was off the chart.</li>
<li>Profits were higher than ever.</li>
</ul>
<p><em>Everything</em> is going according to <strong>plan</strong>.</p>
</blockquote>
<h3 id="blockquotes-best-practices">Blockquotes Best Practices <a class="anchor" href="#blockquotes-best-practices"> </a></h3>
<p>For compatibility, put blank lines before and after blockquotes.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Try to put a blank line before...&gt; This is a blockquote...and after a blockquote.</code></td>
<td><code>Without blank lines, this might not look right.&gt; This is a blockquoteDon't do this!</code></td>
</tr>
</tbody>
</table>
<h2 id="lists">Lists <a class="anchor" href="#lists"> </a></h2>
<p>You can organize items into ordered and unordered lists.</p>
<h3 id="ordered-lists">Ordered Lists <a class="anchor" href="#ordered-lists"> </a></h3>
<p>To create an ordered list, add line items with numbers followed by periods. The numbers dont have to be in numerical order, but the list should start with the number one.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>1. First item2. Second item3. Third item4. Fourth item</code></td>
<td><code>&lt;ol&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ol&gt;</code></td>
<td>First itemSecond itemThird itemFourth item</td>
</tr>
<tr>
<td><code>1. First item1. Second item1. Third item1. Fourth item</code></td>
<td><code>&lt;ol&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ol&gt;</code></td>
<td>First itemSecond itemThird itemFourth item</td>
</tr>
<tr>
<td><code>1. First item8. Second item3. Third item5. Fourth item</code></td>
<td><code>&lt;ol&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ol&gt;</code></td>
<td>First itemSecond itemThird itemFourth item</td>
</tr>
<tr>
<td><code>1. First item2. Second item3. Third item 1. Indented item 2. Indented item4. Fourth item</code></td>
<td><code>&lt;ol&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item &lt;ol&gt; &lt;li&gt;Indented item&lt;/li&gt; &lt;li&gt;Indented item&lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ol&gt;</code></td>
<td>First itemSecond itemThird itemIndented itemIndented itemFourth item</td>
</tr>
</tbody>
</table>
<h4 id="ordered-list-best-practices">Ordered List Best Practices <a class="anchor" href="#ordered-list-best-practices"> </a></h4>
<p>CommonMark and a few other lightweight markup languages let you use a parenthesis (<code>)</code>) as a delimiter (e.g., <code>1) First item</code>), but not all Markdown applications support this, so it isnt a great option from a compatibility perspective. For compatibility, use periods only.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>1. First item2. Second item</code></td>
<td><code>1) First item2) Second item</code></td>
</tr>
</tbody>
</table>
<h3 id="unordered-lists">Unordered Lists <a class="anchor" href="#unordered-lists"> </a></h3>
<p>To create an unordered list, add dashes (<code>-</code>), asterisks (<code>*</code>), or plus signs (<code>+</code>) in front of line items. Indent one or more items to create a nested list.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>- First item- Second item- Third item- Fourth item</code></td>
<td><code>&lt;ul&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ul&gt;</code></td>
<td>First itemSecond itemThird itemFourth item</td>
</tr>
<tr>
<td><code>* First item* Second item* Third item* Fourth item</code></td>
<td><code>&lt;ul&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ul&gt;</code></td>
<td>First itemSecond itemThird itemFourth item</td>
</tr>
<tr>
<td><code>+ First item+ Second item+ Third item+ Fourth item</code></td>
<td><code>&lt;ul&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ul&gt;</code></td>
<td>First itemSecond itemThird itemFourth item</td>
</tr>
<tr>
<td><code>- First item- Second item- Third item - Indented item - Indented item- Fourth item</code></td>
<td><code>&lt;ul&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item &lt;ul&gt; &lt;li&gt;Indented item&lt;/li&gt; &lt;li&gt;Indented item&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Fourth item&lt;/li&gt;&lt;/ul&gt;</code></td>
<td>First itemSecond itemThird itemIndented itemIndented itemFourth item</td>
</tr>
</tbody>
</table>
<h4 id="starting-unordered-list-items-with-numbers">Starting Unordered List Items With Numbers <a class="anchor" href="#starting-unordered-list-items-with-numbers"> </a></h4>
<p>If you need to start an unordered list item with a number followed by a period, you can use a backslash (<code>\</code>) to <a href="https://www.markdownguide.org/basic-syntax/#escaping-characters">escape</a> the period.</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>- 1968\. A great year!- I think 1969 was second best.</code></td>
<td><code>&lt;ul&gt; &lt;li&gt;1968. A great year!&lt;/li&gt; &lt;li&gt;I think 1969 was second best.&lt;/li&gt;&lt;/ul&gt;</code></td>
<td>1968. A great year!I think 1969 was second best.</td>
</tr>
</tbody>
</table>
<h4 id="unordered-list-best-practices">Unordered List Best Practices <a class="anchor" href="#unordered-list-best-practices"> </a></h4>
<p>Markdown applications dont agree on how to handle different delimiters in the same list. For compatibility, dont mix and match delimiters in the same list — pick one and stick with it.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>- First item- Second item- Third item- Fourth item</code></td>
<td><code>+ First item* Second item- Third item+ Fourth item</code></td>
</tr>
</tbody>
</table>
<h3 id="adding-elements-in-lists">Adding Elements in Lists <a class="anchor" href="#adding-elements-in-lists"> </a></h3>
<p>To add another element in a list while preserving the continuity of the list, indent the element four spaces or one tab, as shown in the following examples.</p>
<p><strong>Tip:</strong> If things don&rsquo;t appear the way you expect, double check that you&rsquo;ve indented the elements in the list four spaces or one tab.</p>
<h4 id="paragraphs-1">Paragraphs <a class="anchor" href="#paragraphs-1"> </a></h4>
<pre><code>* This is the first list item.
* Here's the second list item.
I need to add another paragraph below the second list item.
* And here's the third list item.
</code></pre>
<p>The rendered output looks like this:</p>
<ul>
<li>
<p>This is the first list item.</p>
</li>
<li>
<p>Heres the second list item.</p>
<p>I need to add another paragraph below the second list item.</p>
</li>
<li>
<p>And heres the third list item.</p>
</li>
</ul>
<h4 id="blockquotes-1">Blockquotes <a class="anchor" href="#blockquotes-1"> </a></h4>
<pre><code>* This is the first list item.
* Here's the second list item.
&gt; A blockquote would look great below the second list item.
* And here's the third list item.
</code></pre>
<p>The rendered output looks like this:</p>
<ul>
<li>
<p>This is the first list item.</p>
</li>
<li>
<p>Heres the second list item.</p>
<blockquote>
<p>A blockquote would look great below the second list item.</p>
</blockquote>
</li>
<li>
<p>And heres the third list item.</p>
</li>
</ul>
<h4 id="code-blocks">Code Blocks <a class="anchor" href="#code-blocks"> </a></h4>
<p><a href="https://www.markdownguide.org/basic-syntax/#code-blocks">Code blocks</a> are normally indented four spaces or one tab. When theyre in a list, indent them eight spaces or two tabs.</p>
<pre><code>1. Open the file.
2. Find the following code block on line 21:
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Test&lt;/title&gt;
&lt;/head&gt;
3. Update the title to match the name of your website.
</code></pre>
<p>The rendered output looks like this:</p>
<ol>
<li>
<p>Open the file.</p>
</li>
<li>
<p>Find the following code block on line 21:</p>
<pre><code> &lt;html&gt;
&lt;head&gt;
&lt;title&gt;Test&lt;/title&gt;
&lt;/head&gt;
</code></pre>
</li>
<li>
<p>Update the title to match the name of your website.</p>
</li>
</ol>
<h4 id="images">Images <a class="anchor" href="#images"> </a></h4>
<pre><code>1. Open the file containing the Linux mascot.
2. Marvel at its beauty.
![Tux, the Linux mascot](/assets/images/tux.png)
3. Close the file.
</code></pre>
<p>The rendered output looks like this:</p>
<ol>
<li>
<p>Open the file containing the Linux mascot.</p>
</li>
<li>
<p>Marvel at its beauty.</p>
<p><img src="https://mdg.imgix.net/assets/images/tux.png" alt="Tux, the Linux mascot" /></p>
</li>
<li>
<p>Close the file.</p>
</li>
</ol>
<h4 id="lists-1">Lists <a class="anchor" href="#lists-1"> </a></h4>
<p>You can nest an unordered list in an ordered list, or vice versa.</p>
<pre><code>1. First item
2. Second item
3. Third item
- Indented item
- Indented item
4. Fourth item
</code></pre>
<p>The rendered output looks like this:</p>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item
<ul>
<li>Indented item</li>
<li>Indented item</li>
</ul>
</li>
<li>Fourth item</li>
</ol>
<h2 id="code">Code <a class="anchor" href="#code"> </a></h2>
<p>To denote a word or phrase as code, enclose it in backticks (```).</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>At the command prompt, type </code>nano<code>.</code></td>
<td><code>At the command prompt, type &lt;code&gt;nano&lt;/code&gt;.</code></td>
<td>At the command prompt, type <code>nano</code>.</td>
</tr>
</tbody>
</table>
<h3 id="escaping-backticks">Escaping Backticks <a class="anchor" href="#escaping-backticks"> </a></h3>
<p>If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks (````).</p>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>HTML</th>
<th>Rendered Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Use `code` in your Markdown file.</code></td>
<td><code>&lt;code&gt;Use </code>code<code> in your Markdown file.&lt;/code&gt;</code></td>
<td><code>Use </code>code<code> in your Markdown file.</code></td>
</tr>
</tbody>
</table>
<h3 id="code-blocks-1">Code Blocks <a class="anchor" href="#code-blocks-1"> </a></h3>
<p>To create code blocks, indent every line of the block by at least four spaces or one tab.</p>
<pre><code> &lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;/html&gt;
</code></pre>
<p>The rendered output looks like this:</p>
<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;/html&gt;
</code></pre>
<p><strong>Note:</strong> To create code blocks without indenting lines, use <a href="https://www.markdownguide.org/extended-syntax/#fenced-code-blocks">fenced code blocks</a>.</p>
<h2 id="horizontal-rules">Horizontal Rules <a class="anchor" href="#horizontal-rules"> </a></h2>
<p>To create a horizontal rule, use three or more asterisks (<code>***</code>), dashes (<code>---</code>), or underscores (<code>___</code>) on a line by themselves.</p>
<pre><code>***
---
_________________
</code></pre>
<p>The rendered output of all three looks identical:</p>
<hr />
<h3 id="horizontal-rule-best-practices">Horizontal Rule Best Practices <a class="anchor" href="#horizontal-rule-best-practices"> </a></h3>
<p>For compatibility, put blank lines before and after horizontal rules.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Try to put a blank line before...---...and after a horizontal rule.</code></td>
<td><code>Without blank lines, this would be a heading.---Don't do this!</code></td>
</tr>
</tbody>
</table>
<h2 id="links">Links <a class="anchor" href="#links"> </a></h2>
<p>To create a link, enclose the link text in brackets (e.g., <code>[Duck Duck Go]</code>) and then follow it immediately with the URL in parentheses (e.g., <code>(https://duckduckgo.com)</code>).</p>
<pre><code>My favorite search engine is [Duck Duck Go](https://duckduckgo.com).
</code></pre>
<p>The rendered output looks like this:</p>
<p>My favorite search engine is <a href="https://duckduckgo.com/">Duck Duck Go</a>.</p>
<p><strong>Note:</strong> To link to an element on the same page, see <a href="https://www.markdownguide.org/extended-syntax/#linking-to-heading-ids">linking to heading IDs</a>. To create a link that opens in a new tab or window, see the section on <a href="https://www.markdownguide.org/hacks/#link-targets">link targets</a>.</p>
<h3 id="adding-titles">Adding Titles <a class="anchor" href="#adding-titles"> </a></h3>
<p>You can optionally add a title for a link. This will appear as a tooltip when the user hovers over the link. To add a title, enclose it in quotation marks after the URL.</p>
<pre><code>My favorite search engine is [Duck Duck Go](https://duckduckgo.com &quot;The best search engine for privacy&quot;).
</code></pre>
<p>The rendered output looks like this:</p>
<p>My favorite search engine is <a href="https://duckduckgo.com/">Duck Duck Go</a>.</p>
<h3 id="urls-and-email-addresses">URLs and Email Addresses <a class="anchor" href="#urls-and-email-addresses"> </a></h3>
<p>To quickly turn a URL or email address into a link, enclose it in angle brackets.</p>
<pre><code>&lt;https://www.markdownguide.org&gt;
&lt;fake@example.com&gt;
</code></pre>
<p>The rendered output looks like this:</p>
<p><a href="https://www.markdownguide.org/">https://www.markdownguide.org</a><br />
<a href="mailto:fake@example.com">fake@example.com</a></p>
<h3 id="formatting-links">Formatting Links <a class="anchor" href="#formatting-links"> </a></h3>
<p>To <a href="https://www.markdownguide.org/basic-syntax/#emphasis">emphasize</a> links, add asterisks before and after the brackets and parentheses. To denote links as <a href="https://www.markdownguide.org/basic-syntax/#code">code</a>, add backticks in the brackets.</p>
<pre><code>I love supporting the **[EFF](https://eff.org)**.
This is the *[Markdown Guide](https://www.markdownguide.org)*.
See the section on [`code`](#code).
</code></pre>
<p>The rendered output looks like this:</p>
<p>I love supporting the <strong><a href="https://eff.org/">EFF</a></strong>.<br />
This is the <em><a href="https://www.markdownguide.org/">Markdown Guide</a></em>.<br />
See the section on <a href="https://www.markdownguide.org/basic-syntax/#code"><code>code</code></a>.</p>
<h3 id="reference-style-links">Reference-style Links <a class="anchor" href="#reference-style-links"> </a></h3>
<p>Reference-style links are a special kind of link that make URLs easier to display and read in Markdown. Reference-style links are constructed in two parts: the part you keep inline with your text and the part you store somewhere else in the file to keep the text easy to read.</p>
<h4 id="formatting-the-first-part-of-the-link">Formatting the First Part of the Link <a class="anchor" href="#formatting-the-first-part-of-the-link"> </a></h4>
<p>The first part of a reference-style link is formatted with two sets of brackets. The first set of brackets surrounds the text that should appear linked. The second set of brackets displays a label used to point to the link youre storing elsewhere in your document.</p>
<p>Although not required, you can include a space between the first and second set of brackets. The label in the second set of brackets is not case sensitive and can include letters, numbers, spaces, or punctuation.</p>
<p>This means the following example formats are roughly equivalent for the first part of the link:</p>
<ul>
<li><code>[hobbit-hole][1]</code></li>
<li><code>[hobbit-hole] [1]</code></li>
</ul>
<h4 id="formatting-the-second-part-of-the-link">Formatting the Second Part of the Link <a class="anchor" href="#formatting-the-second-part-of-the-link"> </a></h4>
<p>The second part of a reference-style link is formatted with the following attributes:</p>
<ol>
<li>The label, in brackets, followed immediately by a colon and at least one space (e.g., <code>[label]: </code>).</li>
<li>The URL for the link, which you can optionally enclose in angle brackets.</li>
<li>The optional title for the link, which you can enclose in double quotes, single quotes, or parentheses.</li>
</ol>
<p>This means the following example formats are all roughly equivalent for the second part of the link:</p>
<ul>
<li><code>[1]: https://en.wikipedia.org/wiki/Hobbit#Lifestyle</code></li>
<li><code>[1]: https://en.wikipedia.org/wiki/Hobbit#Lifestyle &quot;Hobbit lifestyles&quot;</code></li>
<li><code>[1]: https://en.wikipedia.org/wiki/Hobbit#Lifestyle 'Hobbit lifestyles'</code></li>
<li><code>[1]: https://en.wikipedia.org/wiki/Hobbit#Lifestyle (Hobbit lifestyles)</code></li>
<li><code>[1]: &lt;https://en.wikipedia.org/wiki/Hobbit#Lifestyle&gt; &quot;Hobbit lifestyles&quot;</code></li>
<li><code>[1]: &lt;https://en.wikipedia.org/wiki/Hobbit#Lifestyle&gt; 'Hobbit lifestyles'</code></li>
<li><code>[1]: &lt;https://en.wikipedia.org/wiki/Hobbit#Lifestyle&gt; (Hobbit lifestyles)</code></li>
</ul>
<p>You can place this second part of the link anywhere in your Markdown document. Some people place them immediately after the paragraph in which they appear while other people place them at the end of the document (like endnotes or footnotes).</p>
<h4 id="an-example-putting-the-parts-together">An Example Putting the Parts Together <a class="anchor" href="#an-example-putting-the-parts-together"> </a></h4>
<p>Say you add a URL as a <a href="https://www.markdownguide.org/basic-syntax/#links">standard URL link</a> to a paragraph and it looks like this in Markdown:</p>
<pre><code>In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends
of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to
eat: it was a [hobbit-hole](https://en.wikipedia.org/wiki/Hobbit#Lifestyle &quot;Hobbit lifestyles&quot;), and that means comfort.
</code></pre>
<p>Though it may point to interesting additional information, the URL as displayed really doesnt add much to the existing raw text other than making it harder to read. To fix that, you could format the URL like this instead:</p>
<pre><code>In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends
of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to
eat: it was a [hobbit-hole][1], and that means comfort.
[1]: &lt;https://en.wikipedia.org/wiki/Hobbit#Lifestyle&gt; &quot;Hobbit lifestyles&quot;
</code></pre>
<p>In both instances above, the rendered output would be identical:</p>
<blockquote>
<p>In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a <a href="https://en.wikipedia.org/wiki/Hobbit#Lifestyle">hobbit-hole</a>, and that means comfort.</p>
</blockquote>
<p>and the HTML for the link would be:</p>
<pre><code>&lt;a href=&quot;https://en.wikipedia.org/wiki/Hobbit#Lifestyle&quot; title=&quot;Hobbit lifestyles&quot;&gt;hobbit-hole&lt;/a&gt;
</code></pre>
<h3 id="link-best-practices">Link Best Practices <a class="anchor" href="#link-best-practices"> </a></h3>
<p>Markdown applications dont agree on how to handle spaces in the middle of a URL. For compatibility, try to URL encode any spaces with <code>%20</code>. Alternatively, if your Markdown application <a href="https://www.markdownguide.org/basic-syntax/#html">supports HTML</a>, you could use the <code>a</code> HTML tag.</p>
<table>
<thead>
<tr>
<th>✅ Do this</th>
<th>❌ Don&rsquo;t do this</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>[link](https://www.example.com/my%20great%20page)&lt;a href=&quot;https://www.example.com/my great page&quot;&gt;link&lt;/a&gt;</code></td>
<td><code>[link](https://www.example.com/my great page)</code></td>
</tr>
</tbody>
</table>
<h2 id="images-1">Images <a class="anchor" href="#images-1"> </a></h2>
<p>To add an image, add an exclamation mark (<code>!</code>), followed by alt text in brackets, and the path or URL to the image asset in parentheses. You can optionally add a title in quotation marks after the path or URL.</p>
<pre><code>![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg &quot;San Juan Mountains&quot;)
</code></pre>
<p>The rendered output looks like this:</p>
<p><img src="https://mdg.imgix.net/assets/images/san-juan-mountains.jpg" alt="The San Juan Mountains are beautiful!" /></p>
<p><strong>Note:</strong> To resize an image, see the section on <a href="https://www.markdownguide.org/hacks/#image-size">image size</a>. To add a caption, see the section on <a href="https://www.markdownguide.org/hacks/#image-captions">image captions</a>.</p>
<h3 id="linking-images">Linking Images <a class="anchor" href="#linking-images"> </a></h3>
<p>To add a link to an image, enclose the Markdown for the image in brackets, and then add the link in parentheses.</p>
<pre><code>[![An old rock in the desert](/assets/images/shiprock.jpg &quot;Shiprock, New Mexico by Beau Rogers&quot;)](https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv)
</code></pre>
<p>The rendered output looks like this:</p>
<p><a href="https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv"><img src="https://mdg.imgix.net/assets/images/shiprock.jpg" alt="An old rock in the desert" /></a></p>
<h2 id="escaping-characters">Escaping Characters <a class="anchor" href="#escaping-characters"> </a></h2>
<p>To display a literal character that would otherwise be used to format text in a Markdown document, add a backslash (<code>\</code>) in front of the character.</p>
<pre><code>\* Without the backslash, this would be a bullet in an unordered list.
</code></pre>
<p>The rendered output looks like this:</p>
<p>* Without the backslash, this would be a bullet in an unordered list.</p>
<h3 id="characters-you-can-escape">Characters You Can Escape <a class="anchor" href="#characters-you-can-escape"> </a></h3>
<p>You can use a backslash to escape the following characters.</p>
<table>
<thead>
<tr>
<th>Character</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>\</td>
<td>backslash</td>
</tr>
<tr>
<td>`</td>
<td>backtick (see also <a href="https://www.markdownguide.org/basic-syntax/#escaping-backticks">escaping backticks in code</a>)</td>
</tr>
<tr>
<td>*</td>
<td>asterisk</td>
</tr>
<tr>
<td>_</td>
<td>underscore</td>
</tr>
<tr>
<td>{ }</td>
<td>curly braces</td>
</tr>
<tr>
<td>[ ]</td>
<td>brackets</td>
</tr>
<tr>
<td>&lt; &gt;</td>
<td>angle brackets</td>
</tr>
<tr>
<td>( )</td>
<td>parentheses</td>
</tr>
<tr>
<td>#</td>
<td>pound sign</td>
</tr>
<tr>
<td>+</td>
<td>plus sign</td>
</tr>
<tr>
<td>-</td>
<td>minus sign (hyphen)</td>
</tr>
<tr>
<td>.</td>
<td>dot</td>
</tr>
<tr>
<td>!</td>
<td>exclamation mark</td>
</tr>
<tr>
<td>|</td>
<td>pipe (see also <a href="https://www.markdownguide.org/extended-syntax/#escaping-pipe-characters-in-tables">escaping pipe in tables</a>)</td>
</tr>
</tbody>
</table>
<h2 id="html">HTML <a class="anchor" href="#html"> </a></h2>
<p>Many Markdown applications allow you to use HTML tags in Markdown-formatted text. This is helpful if you prefer certain HTML tags to Markdown syntax. For example, some people find it easier to use HTML tags for images. Using HTML is also helpful when you need to change the attributes of an element, like specifying the <a href="https://www.markdownguide.org/hacks/#color">color of text</a> or changing the width of an image.</p>
<p>To use HTML, place the tags in the text of your Markdown-formatted file.</p>
<pre><code>This **word** is bold. This &lt;em&gt;word&lt;/em&gt; is italic.
</code></pre>
<p>The rendered output looks like this:</p>
<p>This <strong>word</strong> is bold. This <em>word</em> is italic.</p>
<h3 id="html-best-practices">HTML Best Practices <a class="anchor" href="#html-best-practices"> </a></h3>
<p>For security reasons, not all Markdown applications support HTML in Markdown documents. When in doubt, check your Markdown applications documentation. Some applications support only a subset of HTML tags.</p>
<p>Use blank lines to separate block-level HTML elements like <code>&lt;div&gt;</code>, <code>&lt;table&gt;</code>, <code>&lt;pre&gt;</code>, and <code>&lt;p&gt;</code> from the surrounding content. Try not to indent the tags with tabs or spaces — that can interfere with the formatting.</p>
<p>You cant use Markdown syntax inside block-level HTML tags. For example, <code>&lt;p&gt;italic and **bold**&lt;/p&gt;</code> wont work.</p>
</article>
<a href="TestPage.md?edit" rel="nofollow" target="_self">✍️ Edit this page</a>
<footer>
Copyright &copy; James Mills ·
Last modified <time datetime="2024-03-03T05:40:12Z+00:00
">Sun Mar 3 05:40:12 UTC 2024
</time> ·
Built with <a href="https://git.mills.io/prologic/zs">zs</a>
</footer>
<script type="application/javascript" src="/assets/js/highlight.js"></script>
<script type="application/javascript" src="/assets/js/umbrella.js"></script>
<script type="application/javascript" src="/assets/js/live.js"></script>
<script>
hljs.highlightAll();
</script>
</body>
</html>