<lidata-nav-id=/cont/menushortcuts/title="Menu extra shortcuts"class=dd-item><ahref=../../cont/menushortcuts/>Menu extra shortcuts<iclass="fas fa-check read-icon"></i></a></li>
<lidata-nav-id=/cont/icons/title="Icons and logos"class=dd-item><ahref=../../cont/icons/>Icons and logos<iclass="fas fa-check read-icon"></i></a></li>
<lidata-nav-id=/cont/i18n/title="Multilingual and i18n"class="dd-item alwaysopen"><ahref=../../cont/i18n/>Multilingual and i18n<iclass="fas fa-check read-icon"></i></a><ul></ul></li>
<aclass=github-buttonhref=https://github.com/McShelby/hugo-theme-relearn/archive/main.zipdata-icon=octicon-cloud-downloadaria-label="Download McShelby/hugo-theme-relearn on GitHub">Download</a>
<aclass=github-buttonhref=https://github.com/McShelby/hugo-theme-relearndata-icon=octicon-stardata-show-count=truearia-label="Star McShelby/hugo-theme-relearn on GitHub">Star</a>
<aclass=github-buttonhref=https://github.com/McShelby/hugo-theme-relearn/forkdata-icon=octicon-repo-forkeddata-show-count=truearia-label="Fork McShelby/hugo-theme-relearn on GitHub">Fork</a>
<p>Built with <ahref=https://github.com/McShelby/hugo-theme-relearn><iclass="fas fa-heart"></i></a> by <ahref=https://gohugo.io/>Hugo</a></p>
<aclass=github-linktitle="Edit this page"href=https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/cont/markdown.en.mdtarget=blank>
<iclass="fas fa-code-branch"></i>
<spanid=top-github-link-text>Edit this page</span>
<p>Let’s face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages.</p>
<p><strong>Markdown</strong> is a better way to write <strong>HTML</strong>, without all the complexities and ugliness that usually accompanies it.</p>
<p>Some of the key benefits are:</p>
<ol>
<li>Markdown is simple to learn, with minimal extra characters so it’s also quicker to write content.</li>
<li>Less chance of errors when writing in Markdown.</li>
<li>Produces valid XHTML output.</li>
<li>Keeps the content and the visual display separate, so you cannot mess up the look of your site.</li>
<li>Write in any text editor or Markdown application you like.</li>
<li>Markdown is a joy to use!</li>
</ol>
<p>John Gruber, the author of Markdown, puts it like this:</p>
<blockquote>
<p>The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.
<cite>John Gruber</cite></p>
</blockquote>
<p>Without further delay, let us go over the main elements of Markdown and what the resulting HTML looks like:</p>
<divclass="notices info">
<divclass=label>Info</div><p><iclass="fas fa-bookmark"></i> Bookmark this page and the <ahref=https://commonmark.org/help/>official Commonmark reference</a> for easy future reference!</p>
</div>
<h2id=headings>Headings</h2>
<p>Headings from <code>h1</code> through <code>h6</code> are constructed with a <code>#</code> for each level:</p>
</code></pre></div><p>Comment below should <strong>NOT</strong> be seen:</p>
<h2id=horizontal-rules>Horizontal Rules</h2>
<p>The HTML <code><hr></code> element is for creating a “thematic break” between paragraph-level elements. In Markdown, you can create a <code><hr></code> with <code>---</code> - three consecutive dashes</p>
<p>renders to:</p>
<hr>
<h2id=paragraphs>Paragraphs</h2>
<p>Any text not starting with a special sign is written as normal, plain text and will be wrapped within <code><p></p></code> tags in the rendered HTML.</p>
<p>So this body copy:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.
</code></pre></div><p>renders to this HTML:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-htmldata-lang=html><<spanstyle=color:#ff6ac1>p</span>>Lorem ipsum dolor sit amet, graecis denique ei vel, at duo primis mandamus. Et legere ocurreret pri, animal tacimates complectitur ad cum. Cu eum inermis inimicus efficiendi. Labore officiis his ex, soluta officiis concludaturque ei qui, vide sensibus vim ad.</<spanstyle=color:#ff6ac1>p</span>>
<p>For emphasizing a snippet of text with a heavier font-weight.</p>
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown>**rendered as bold text**
</code></pre></div><p>renders to:</p>
<p><strong>rendered as bold text</strong></p>
<p>and this HTML</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-htmldata-lang=html><<spanstyle=color:#ff6ac1>strong</span>>rendered as bold text</<spanstyle=color:#ff6ac1>strong</span>>
</code></pre></div><h3id=italics>Italics</h3>
<p>For emphasizing a snippet of text with italics.</p>
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown>_rendered as italicized text_
</code></pre></div><p>renders to:</p>
<p><em>rendered as italicized text</em></p>
<p>and this HTML:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-htmldata-lang=html><<spanstyle=color:#ff6ac1>em</span>>rendered as italicized text</<spanstyle=color:#ff6ac1>em</span>>
<p>In GFM (GitHub flavored Markdown) you can do strikethroughs.</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown>~~Strike through this text.~~
</code></pre></div><p>Which renders to:</p>
<p><del>Strike through this text.</del></p>
<p>HTML:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-htmldata-lang=html><<spanstyle=color:#ff6ac1>del</span>>Strike through this text.</<spanstyle=color:#ff6ac1>del</span>>
<p>For quoting blocks of content from another source within your document.</p>
<p>Add <code>></code> before any text you want to quote.</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown><spanstyle=color:#ff6ac1>></span><spanstyle=text-decoration:underline>**Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
</span></code></pre></div><p>Renders to:</p>
<blockquote>
<p><strong>Fusion Drive</strong> combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.</p>
<<spanstyle=color:#ff6ac1>p</span>><<spanstyle=color:#ff6ac1>strong</span>>Fusion Drive</<spanstyle=color:#ff6ac1>strong</span>> combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.</<spanstyle=color:#ff6ac1>p</span>>
</code></pre></div><p>Blockquotes can also be nested:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown><spanstyle=color:#ff6ac1>></span><spanstyle=text-decoration:underline>Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue. Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
</span><spanstyle=color:#ff6ac1></span><spanstyle=text-decoration:underline>>> Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.
</span><spanstyle=color:#ff6ac1></span><spanstyle=text-decoration:underline>> Mauris sit amet ligula egestas, feugiat metus tincidunt, luctus libero. Donec congue finibus tempor. Vestibulum aliquet sollicitudin erat, ut aliquet purus posuere luctus.
</span></code></pre></div><p>Renders to:</p>
<blockquote>
<p>Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue. Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.</p>
<blockquote>
<p>Sed adipiscing elit vitae augue consectetur a gravida nunc vehicula. Donec auctor odio non est accumsan facilisis. Aliquam id turpis in dolor tincidunt mollis ac eu diam.</p>
</blockquote>
<p>Mauris sit amet ligula egestas, feugiat metus tincidunt, luctus libero. Donec congue finibus tempor. Vestibulum aliquet sollicitudin erat, ut aliquet purus posuere luctus.</p>
</blockquote>
<h2id=lists>Lists</h2>
<h3id=unordered>Unordered</h3>
<p>A list of items in which the order of the items does not explicitly matter.</p>
<p>You may use any of the following symbols to denote bullets for each list item:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown>+ Lorem ipsum dolor sit amet
+ Consectetur adipiscing elit
+ Integer molestie lorem at massa
+ Facilisis in pretium nisl aliquet
+ Nulla volutpat aliquam velit
<spanstyle=color:#ff6ac1>-</span> Phasellus iaculis neque
<spanstyle=color:#ff6ac1>-</span> Purus sodales ultricies
<spanstyle=color:#ff6ac1>-</span> Vestibulum laoreet porttitor sem
<spanstyle=color:#ff6ac1>-</span> Ac tristique libero volutpat at
<p>A list of items in which the order of items does explicitly matter.</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown><spanstyle=color:#ff6ac1>1.</span> Lorem ipsum dolor sit amet
<divclass=label>Tip</div><p>If you just use <code>1.</code> for each number, Markdown will automatically number each item. For example:</p>
</div>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown><spanstyle=color:#ff6ac1>1.</span> Lorem ipsum dolor sit amet
<spanstyle=color:#ff6ac1>1.</span> Integer molestie lorem at massa
<spanstyle=color:#ff6ac1>1.</span> Facilisis in pretium nisl aliquet
<spanstyle=color:#ff6ac1>1.</span> Nulla volutpat aliquam velit
<spanstyle=color:#ff6ac1>1.</span> Faucibus porta lacus fringilla vel
<spanstyle=color:#ff6ac1>1.</span> Aenean sit amet erat nunc
<spanstyle=color:#ff6ac1>1.</span> Eget porttitor lorem
</code></pre></div><p>Renders to:</p>
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
<h2id=code>Code</h2>
<h3id=inline-code>Inline code</h3>
<p>Wrap inline snippets of code with <code>`</code>.</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown>In this example, <spanstyle=color:#5af78e>`<div></div>`</span> should be wrapped as <spanstyle=font-style:italic>**code**</span>.
</code></pre></div><p>Renders to:</p>
<p>In this example, <code><div></div></code> should be wrapped as <strong>code</strong>.</p>
<p>HTML:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-htmldata-lang=html><<spanstyle=color:#ff6ac1>p</span>>In this example, <<spanstyle=color:#ff6ac1>code</span>>&lt;div&gt;&lt;/div&gt;</<spanstyle=color:#ff6ac1>code</span>> should be wrapped as <<spanstyle=color:#ff6ac1>strong</span>>code</<spanstyle=color:#ff6ac1>strong</span>>.</<spanstyle=color:#ff6ac1>p</span>>
<p>Or indent several lines of code by at least two spaces, as in:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown> // Some comments
<p>GFM, or “GitHub Flavored Markdown” also supports syntax highlighting. To activate it, usually you simply add the file extension of the language you want to use directly after the first code “fence”, <code>```js</code>, and syntax highlighting will automatically be applied in the rendered HTML.</p>
<p>Tables are created by adding pipes as dividers between each cell, and by adding a line of dashes (also separated by bars) beneath the header. Note that the pipes do not need to be vertically aligned.</p>
<<spanstyle=color:#ff6ac1>td</span>>path to data files to supply the data that will be passed into templates.</<spanstyle=color:#ff6ac1>td</span>>
<<spanstyle=color:#ff6ac1>td</span>>engine to be used for processing templates. Handlebars is the default.</<spanstyle=color:#ff6ac1>td</span>>
<p>Named anchors enable you to jump to the specified anchor point on the same page. For example, each of these chapters:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-markdowndata-lang=markdown><spanstyle=font-weight:700># Table of Contents
</span><spanstyle=font-weight:700></span>Content for chapter one.
</code></pre></div><p><strong>NOTE</strong> that specific placement of the anchor tag seems to be arbitrary. They are placed inline here since it seems to be unobtrusive, and it works.</p>
<h2id=images>Images</h2>
<p>Images have a similar syntax to links but include a preceding exclamation point.</p>
<p>The Hugo Markdown parser supports additional non-standard functionality.</p>
<h4id=resizing-image>Resizing image</h4>
<p>Add HTTP parameters <code>width</code> and/or <code>height</code> to the link image to resize the image. Values are CSS values (default is <code>auto</code>).</p>
<p>Add a HTTP <code>classes</code> parameter to the link image to add CSS classes. <code>shadow</code>and <code>border</code> are available but you could define other ones.</p>
<p>Add a HTTP <code>featherlight</code> parameter to the link image to disable lightbox. By default lightbox is enabled using the featherlight.js plugin. You can disable this by defining <code>featherlight</code> to <code>false</code>.</p>