mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 17:53:07 +00:00
663 lines
58 KiB
HTML
663 lines
58 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" dir="ltr">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||
<meta name="generator" content="Hugo 0.107.0">
|
||
<meta name="generator" content="Relearn 5.7.0+tip">
|
||
<meta name="description" content="Documentation for Hugo Relearn Theme">
|
||
<meta name="author" content="Sören Weber">
|
||
<title>Markdown syntax :: Hugo Relearn Theme</title>
|
||
<link href="https://McShelby.github.io/hugo-theme-relearn/cont/markdown/index.html" rel="canonical" type="text/html" title="Markdown syntax :: Hugo Relearn Theme">
|
||
<link href="../../cont/markdown/index.xml" rel="alternate" type="application/rss+xml" title="Markdown syntax :: Hugo Relearn Theme">
|
||
<link href="../../images/logo.svg?1669856383" rel="icon" type="image/svg+xml">
|
||
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use -->
|
||
<link href="../../css/fontawesome-all.min.css?1669856385" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="../../css/fontawesome-all.min.css?1669856385" rel="stylesheet"></noscript>
|
||
<link href="../../css/featherlight.min.css?1669856385" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="../../css/featherlight.min.css?1669856385" rel="stylesheet"></noscript>
|
||
<link href="../../css/auto-complete.css?1669856385" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="../../css/auto-complete.css?1669856385" rel="stylesheet"></noscript>
|
||
<link href="../../css/perfect-scrollbar.min.css?1669856385" rel="stylesheet">
|
||
<link href="../../css/nucleus.css?1669856385" rel="stylesheet">
|
||
<link href="../../css/fonts.css?1669856385" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="../../css/fonts.css?1669856385" rel="stylesheet"></noscript>
|
||
<link href="../../css/theme.css?1669856385" rel="stylesheet">
|
||
<link href="../../css/theme-relearn-light.css?1669856385" rel="stylesheet" id="variant-style">
|
||
<link href="../../css/ie.css?1669856385" rel="stylesheet">
|
||
<link href="../../css/variant.css?1669856385" rel="stylesheet">
|
||
<link href="../../css/print.css?1669856385" rel="stylesheet" media="print">
|
||
<link href="../../css/format-print.css?1669856385" rel="stylesheet">
|
||
<script src="../../js/url.js?1669856385"></script>
|
||
<script src="../../js/variant.js?1669856385"></script>
|
||
<script>
|
||
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
|
||
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
|
||
window.index_js_url="../../index.search.js";
|
||
var root_url="../../";
|
||
var baseUri=root_url.replace(/\/$/, '');
|
||
// translations
|
||
window.T_Copy_to_clipboard = 'Copy to clipboard';
|
||
window.T_Copied_to_clipboard = 'Copied to clipboard!';
|
||
window.T_Copy_link_to_clipboard = 'Copy link to clipboard';
|
||
window.T_Link_copied_to_clipboard = 'Copied link to clipboard!';
|
||
window.T_No_results_found = 'No results found for \u0022{0}\u0022';
|
||
window.T_N_results_found = '{1} results found for \u0022{0}\u0022';
|
||
// some further base stuff
|
||
var baseUriFull='https:\/\/McShelby.github.io\/hugo-theme-relearn/';
|
||
window.variants && variants.init( [ 'relearn-light', 'relearn-dark', 'learn', 'neon', 'blue', 'green', 'red' ] );
|
||
</script>
|
||
<script src="../../js/jquery.min.js?1669856385" defer></script>
|
||
</head>
|
||
<body class="mobile-support print disableInlineCopyToClipboard" data-url="../../cont/markdown/index.html">
|
||
<div id="body" class="default-animation">
|
||
<div id="sidebar-overlay"></div>
|
||
<div id="toc-overlay"></div>
|
||
<nav id="topbar" class="highlightable" dir="ltr">
|
||
<div>
|
||
<div id="breadcrumbs">
|
||
<span id="sidebar-toggle-span">
|
||
<a href="#" id="sidebar-toggle" title='Menu (CTRL+ALT+n)'><i class="fas fa-bars fa-fw"></i></a>
|
||
</span>
|
||
<ol class="links" itemscope itemtype="http://schema.org/BreadcrumbList">
|
||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><a itemprop="item" href="../../index.html"><span itemprop="name">Hugo Relearn Theme</span></a><meta itemprop="position" content="1"> > </li>
|
||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><a itemprop="item" href="../../cont/index.html"><span itemprop="name">Content</span></a><meta itemprop="position" content="2"> > </li>
|
||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><span itemprop="name">Markdown syntax</span><meta itemprop="position" content="3"></li>
|
||
</ol>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
<main id="body-inner" class="highlightable default" tabindex="-1">
|
||
<div class="flex-block-wrapper">
|
||
<div id="head-tags">
|
||
</div>
|
||
<article class="default">
|
||
<h1 id="markdown-syntax">Markdown syntax</h1>
|
||
|
||
<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>
|
||
|
||
<div class="box notices cstyle info">
|
||
<div class="box-label"><i class="fa-fw fas fa-info-circle"></i> Info</div>
|
||
<div class="box-content">
|
||
<p><i class="fas fa-bookmark"></i> Bookmark this page and the <a href="https://commonmark.org/help/">official Commonmark reference</a> for easy future reference!</p>
|
||
</div>
|
||
</div>
|
||
<h2 id="headings">Headings</h2>
|
||
<p>Headings from <code>h1</code> through <code>h6</code> are constructed with a <code>#</code> for each level:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="gh"># h1 Heading
|
||
</span></span></span><span class="line"><span class="cl"><span class="gh"></span><span class="gu">## h2 Heading
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu">### h3 Heading
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu">#### h4 Heading
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu">##### h5 Heading
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu">###### h6 Heading
|
||
</span></span></span></code></pre></div><p>Renders to:</p>
|
||
<!-- markdownlint-disable MD025 -->
|
||
<h1 id="h1-heading">h1 Heading</h1>
|
||
<!-- markdownlint-enable MD025 -->
|
||
<h2 id="h2-heading">h2 Heading</h2>
|
||
<h3 id="h3-heading">h3 Heading</h3>
|
||
<h4 id="h4-heading">h4 Heading</h4>
|
||
<h5 id="h5-heading">h5 Heading</h5>
|
||
<h6 id="h6-heading">h6 Heading</h6>
|
||
<p>HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">h1</span><span class="p">></span>h1 Heading<span class="p"></</span><span class="nt">h1</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">h2</span><span class="p">></span>h2 Heading<span class="p"></</span><span class="nt">h2</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">h3</span><span class="p">></span>h3 Heading<span class="p"></</span><span class="nt">h3</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">h4</span><span class="p">></span>h4 Heading<span class="p"></</span><span class="nt">h4</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">h5</span><span class="p">></span>h5 Heading<span class="p"></</span><span class="nt">h5</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">h6</span><span class="p">></span>h6 Heading<span class="p"></</span><span class="nt">h6</span><span class="p">></span>
|
||
</span></span></code></pre></div><h2 id="comments">Comments</h2>
|
||
<p>Comments should be HTML compatible</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="c"><!--
|
||
</span></span></span><span class="line"><span class="cl"><span class="c">This is a comment
|
||
</span></span></span><span class="line"><span class="cl"><span class="c">--></span>
|
||
</span></span></code></pre></div><p>Comment below should <strong>NOT</strong> be seen:</p>
|
||
<!--
|
||
This is a comment
|
||
-->
|
||
<h2 id="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>
|
||
<h2 id="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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">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.
|
||
</span></span></code></pre></div><p>renders to this HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">p</span><span class="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.<span class="p"></</span><span class="nt">p</span><span class="p">></span>
|
||
</span></span></code></pre></div><h2 id="text-markers">Text Markers</h2>
|
||
<h3 id="bold">Bold</h3>
|
||
<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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">**rendered as bold text**
|
||
</span></span></code></pre></div><p>renders to:</p>
|
||
<!-- markdownlint-disable MD036 -->
|
||
<p><strong>rendered as bold text</strong></p>
|
||
<!-- markdownlint-enable MD036 -->
|
||
<p>and this HTML</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">strong</span><span class="p">></span>rendered as bold text<span class="p"></</span><span class="nt">strong</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">_rendered as italicized text_
|
||
</span></span></code></pre></div><p>renders to:</p>
|
||
<!-- markdownlint-disable MD036 -->
|
||
<p><em>rendered as italicized text</em></p>
|
||
<!-- markdownlint-enable MD036 -->
|
||
<p>and this HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">em</span><span class="p">></span>rendered as italicized text<span class="p"></</span><span class="nt">em</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="strikethrough">Strikethrough</h3>
|
||
<p>In GFM (GitHub flavored Markdown) you can do strikethroughs.</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">~~Strike through this text.~~
|
||
</span></span></code></pre></div><p>Which renders to:</p>
|
||
<p><del>Strike through this text.</del></p>
|
||
<p>HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">del</span><span class="p">></span>Strike through this text.<span class="p"></</span><span class="nt">del</span><span class="p">></span>
|
||
</span></span></code></pre></div><h2 id="blockquotes">Blockquotes</h2>
|
||
<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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="k">> </span><span class="ge">**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></span></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>
|
||
</blockquote>
|
||
<p>and this HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">blockquote</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">p</span><span class="p">><</span><span class="nt">strong</span><span class="p">></span>Fusion Drive<span class="p"></</span><span class="nt">strong</span><span class="p">></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.<span class="p"></</span><span class="nt">p</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">blockquote</span><span class="p">></span>
|
||
</span></span></code></pre></div><p>Blockquotes can also be nested:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="k">> </span><span class="ge">Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue. Nunc augue augue, aliquam non hendrerit ac, commodo vel nisi.
|
||
</span></span></span><span class="line"><span class="cl"><span class="ge"></span><span class="k">>
|
||
</span></span></span><span class="line"><span class="cl"><span class="k"></span><span class="ge">> > 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></span></span><span class="line"><span class="cl"><span class="ge"></span><span class="k">>
|
||
</span></span></span><span class="line"><span class="cl"><span class="k"></span><span class="ge">> Mauris sit amet ligula egestas, feugiat metus tincidunt, luctus libero. Donec congue finibus tempor. Vestibulum aliquet sollicitudin erat, ut aliquet purus posuere luctus.
|
||
</span></span></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>
|
||
<h2 id="lists">Lists</h2>
|
||
<h3 id="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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="k">*</span> valid bullet
|
||
</span></span><span class="line"><span class="cl"><span class="k">-</span> valid bullet
|
||
</span></span><span class="line"><span class="cl">+ valid bullet
|
||
</span></span></code></pre></div><p>For example</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">+ Lorem ipsum dolor sit amet
|
||
</span></span><span class="line"><span class="cl">+ Consectetur adipiscing elit
|
||
</span></span><span class="line"><span class="cl">+ Integer molestie lorem at massa
|
||
</span></span><span class="line"><span class="cl">+ Facilisis in pretium nisl aliquet
|
||
</span></span><span class="line"><span class="cl">+ Nulla volutpat aliquam velit
|
||
</span></span><span class="line"><span class="cl"> <span class="k">-</span> Phasellus iaculis neque
|
||
</span></span><span class="line"><span class="cl"> <span class="k">-</span> Purus sodales ultricies
|
||
</span></span><span class="line"><span class="cl"> <span class="k">-</span> Vestibulum laoreet porttitor sem
|
||
</span></span><span class="line"><span class="cl"> <span class="k">-</span> Ac tristique libero volutpat at
|
||
</span></span><span class="line"><span class="cl">+ Faucibus porta lacus fringilla vel
|
||
</span></span><span class="line"><span class="cl">+ Aenean sit amet erat nunc
|
||
</span></span><span class="line"><span class="cl">+ Eget porttitor lorem
|
||
</span></span></code></pre></div><p>Renders to:</p>
|
||
<!-- markdownlint-disable MD004 -->
|
||
<ul>
|
||
<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
|
||
<ul>
|
||
<li>Phasellus iaculis neque</li>
|
||
<li>Purus sodales ultricies</li>
|
||
<li>Vestibulum laoreet porttitor sem</li>
|
||
<li>Ac tristique libero volutpat at</li>
|
||
</ul>
|
||
</li>
|
||
<li>Faucibus porta lacus fringilla vel</li>
|
||
<li>Aenean sit amet erat nunc</li>
|
||
<li>Eget porttitor lorem</li>
|
||
</ul>
|
||
<!-- markdownlint-enable MD004 -->
|
||
<p>And this HTML</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">ul</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Lorem ipsum dolor sit amet<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Consectetur adipiscing elit<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Integer molestie lorem at massa<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Facilisis in pretium nisl aliquet<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Nulla volutpat aliquam velit
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">ul</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Phasellus iaculis neque<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Purus sodales ultricies<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Vestibulum laoreet porttitor sem<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Ac tristique libero volutpat at<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">ul</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Faucibus porta lacus fringilla vel<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Aenean sit amet erat nunc<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Eget porttitor lorem<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">ul</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="ordered">Ordered</h3>
|
||
<p>A list of items in which the order of items does explicitly matter.</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="k">1.</span> Lorem ipsum dolor sit amet
|
||
</span></span><span class="line"><span class="cl"><span class="k">4.</span> Consectetur adipiscing elit
|
||
</span></span><span class="line"><span class="cl"><span class="k">2.</span> Integer molestie lorem at massa
|
||
</span></span><span class="line"><span class="cl"><span class="k">8.</span> Facilisis in pretium nisl aliquet
|
||
</span></span><span class="line"><span class="cl"><span class="k">4.</span> Nulla volutpat aliquam velit
|
||
</span></span><span class="line"><span class="cl"><span class="k">99.</span> Faucibus porta lacus fringilla vel
|
||
</span></span><span class="line"><span class="cl"><span class="k">21.</span> Aenean sit amet erat nunc
|
||
</span></span><span class="line"><span class="cl"><span class="k">6.</span> Eget porttitor lorem
|
||
</span></span></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>
|
||
<p>And this HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">ol</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Lorem ipsum dolor sit amet<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Consectetur adipiscing elit<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Integer molestie lorem at massa<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Facilisis in pretium nisl aliquet<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Nulla volutpat aliquam velit<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Faucibus porta lacus fringilla vel<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Aenean sit amet erat nunc<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">li</span><span class="p">></span>Eget porttitor lorem<span class="p"></</span><span class="nt">li</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">ol</span><span class="p">></span>
|
||
</span></span></code></pre></div>
|
||
<div class="box notices cstyle tip">
|
||
<div class="box-label"><i class="fa-fw fas fa-lightbulb"></i> Tip</div>
|
||
<div class="box-content">
|
||
<p>If you just use <code>1.</code> for each number, Markdown will automatically number each item. For example:</p>
|
||
</div>
|
||
</div>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="k">1.</span> Lorem ipsum dolor sit amet
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Consectetur adipiscing elit
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Integer molestie lorem at massa
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Facilisis in pretium nisl aliquet
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Nulla volutpat aliquam velit
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Faucibus porta lacus fringilla vel
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Aenean sit amet erat nunc
|
||
</span></span><span class="line"><span class="cl"><span class="k">1.</span> Eget porttitor lorem
|
||
</span></span></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>
|
||
<h2 id="code">Code</h2>
|
||
<h3 id="inline-code">Inline code</h3>
|
||
<p>Wrap inline snippets of code with <code>`</code>.</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">In this example, <span class="sb">`<div></div>`</span> should be wrapped as <span class="gs">**code**</span>.
|
||
</span></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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">p</span><span class="p">></span>In this example, <span class="p"><</span><span class="nt">code</span><span class="p">></span><span class="ni">&lt;</span>div<span class="ni">&gt;&lt;</span>/div<span class="ni">&gt;</span><span class="p"></</span><span class="nt">code</span><span class="p">></span> should be wrapped as <span class="p"><</span><span class="nt">strong</span><span class="p">></span>code<span class="p"></</span><span class="nt">strong</span><span class="p">></span>.<span class="p"></</span><span class="nt">p</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="indented-code">Indented code</h3>
|
||
<p>Or indent several lines of code by at least two spaces, as in:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"> // Some comments
|
||
</span></span><span class="line"><span class="cl"> line 1 of code
|
||
</span></span><span class="line"><span class="cl"> line 2 of code
|
||
</span></span><span class="line"><span class="cl"> line 3 of code
|
||
</span></span></code></pre></div><p>Renders to:</p>
|
||
<!-- markdownlint-disable MD046 -->
|
||
<pre><code>// Some comments
|
||
line 1 of code
|
||
line 2 of code
|
||
line 3 of code
|
||
</code></pre>
|
||
<!-- markdownlint-enable MD046 -->
|
||
<p>HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">pre</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">code</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> // Some comments
|
||
</span></span><span class="line"><span class="cl"> line 1 of code
|
||
</span></span><span class="line"><span class="cl"> line 2 of code
|
||
</span></span><span class="line"><span class="cl"> line 3 of code
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">code</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">pre</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="block-code-fences">Block code “fences”</h3>
|
||
<p>Use “fences” <code>```</code> to block in multiple lines of code.</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plaintext" data-lang="plaintext"><span class="line"><span class="cl">```
|
||
</span></span><span class="line"><span class="cl">Sample text here...
|
||
</span></span><span class="line"><span class="cl">```
|
||
</span></span></code></pre></div><p>HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">pre</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">code</span><span class="p">></span>Sample text here...<span class="p"></</span><span class="nt">code</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">pre</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="syntax-highlighting">Syntax highlighting</h3>
|
||
<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>See <a href="../../cont/syntaxhighlight/">Code Highlighting</a> for additional documentation.</p>
|
||
<p>For example, to apply syntax highlighting to JavaScript code:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-plaintext" data-lang="plaintext"><span class="line"><span class="cl">```js
|
||
</span></span><span class="line"><span class="cl">grunt.initConfig({
|
||
</span></span><span class="line"><span class="cl"> assemble: {
|
||
</span></span><span class="line"><span class="cl"> options: {
|
||
</span></span><span class="line"><span class="cl"> assets: 'docs/assets',
|
||
</span></span><span class="line"><span class="cl"> data: 'src/data/*.{json,yml}',
|
||
</span></span><span class="line"><span class="cl"> helpers: 'src/custom-helpers.js',
|
||
</span></span><span class="line"><span class="cl"> partials: ['src/partials/**/*.{hbs,md}']
|
||
</span></span><span class="line"><span class="cl"> },
|
||
</span></span><span class="line"><span class="cl"> pages: {
|
||
</span></span><span class="line"><span class="cl"> options: {
|
||
</span></span><span class="line"><span class="cl"> layout: 'default.hbs'
|
||
</span></span><span class="line"><span class="cl"> },
|
||
</span></span><span class="line"><span class="cl"> files: {
|
||
</span></span><span class="line"><span class="cl"> './': ['src/templates/pages/index.hbs']
|
||
</span></span><span class="line"><span class="cl"> }
|
||
</span></span><span class="line"><span class="cl"> }
|
||
</span></span><span class="line"><span class="cl"> }
|
||
</span></span><span class="line"><span class="cl">};
|
||
</span></span><span class="line"><span class="cl">```
|
||
</span></span></code></pre></div><p>Renders to:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-js" data-lang="js"><span class="line"><span class="cl"><span class="nx">grunt</span><span class="p">.</span><span class="nx">initConfig</span><span class="p">({</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">assemble</span><span class="o">:</span> <span class="p">{</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">options</span><span class="o">:</span> <span class="p">{</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">assets</span><span class="o">:</span> <span class="s1">'docs/assets'</span><span class="p">,</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">data</span><span class="o">:</span> <span class="s1">'src/data/*.{json,yml}'</span><span class="p">,</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">helpers</span><span class="o">:</span> <span class="s1">'src/custom-helpers.js'</span><span class="p">,</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">partials</span><span class="o">:</span> <span class="p">[</span><span class="s1">'src/partials/**/*.{hbs,md}'</span><span class="p">]</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">},</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">pages</span><span class="o">:</span> <span class="p">{</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">options</span><span class="o">:</span> <span class="p">{</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">layout</span><span class="o">:</span> <span class="s1">'default.hbs'</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">},</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="nx">files</span><span class="o">:</span> <span class="p">{</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="s1">'./'</span><span class="o">:</span> <span class="p">[</span><span class="s1">'src/templates/pages/index.hbs'</span><span class="p">]</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">}</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">}</span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p">}</span>
|
||
</span></span><span class="line"><span class="cl"><span class="p">};</span>
|
||
</span></span></code></pre></div><h2 id="tables">Tables</h2>
|
||
<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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">| Option | Description |
|
||
</span></span><span class="line"><span class="cl">| ------ | ----------- |
|
||
</span></span><span class="line"><span class="cl">| data | path to data files to supply the data that will be passed into templates. |
|
||
</span></span><span class="line"><span class="cl">| engine | engine to be used for processing templates. Handlebars is the default. |
|
||
</span></span><span class="line"><span class="cl">| ext | extension to be used for dest files. |
|
||
</span></span></code></pre></div><p>Renders to:</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Option</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>data</td>
|
||
<td>path to data files to supply the data that will be passed into templates.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>engine</td>
|
||
<td>engine to be used for processing templates. Handlebars is the default.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ext</td>
|
||
<td>extension to be used for dest files.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>And this HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">table</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">th</span><span class="p">></span>Option<span class="p"></</span><span class="nt">th</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">th</span><span class="p">></span>Description<span class="p"></</span><span class="nt">th</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">td</span><span class="p">></span>data<span class="p"></</span><span class="nt">td</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">td</span><span class="p">></span>path to data files to supply the data that will be passed into templates.<span class="p"></</span><span class="nt">td</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">td</span><span class="p">></span>engine<span class="p"></</span><span class="nt">td</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">td</span><span class="p">></span>engine to be used for processing templates. Handlebars is the default.<span class="p"></</span><span class="nt">td</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">td</span><span class="p">></span>ext<span class="p"></</span><span class="nt">td</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">td</span><span class="p">></span>extension to be used for dest files.<span class="p"></</span><span class="nt">td</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"> <span class="p"></</span><span class="nt">tr</span><span class="p">></span>
|
||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">table</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="right-aligned-text">Right aligned text</h3>
|
||
<p>Adding a colon on the right side of the dashes below any heading will right align text for that column.</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">| Option | Description |
|
||
</span></span><span class="line"><span class="cl">| ------:| -----------:|
|
||
</span></span><span class="line"><span class="cl">| data | path to data files to supply the data that will be passed into templates. |
|
||
</span></span><span class="line"><span class="cl">| engine | engine to be used for processing templates. Handlebars is the default. |
|
||
</span></span><span class="line"><span class="cl">| ext | extension to be used for dest files. |
|
||
</span></span></code></pre></div><table>
|
||
<thead>
|
||
<tr>
|
||
<th style="text-align:right">Option</th>
|
||
<th style="text-align:right">Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align:right">data</td>
|
||
<td style="text-align:right">path to data files to supply the data that will be passed into templates.</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align:right">engine</td>
|
||
<td style="text-align:right">engine to be used for processing templates. Handlebars is the default.</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align:right">ext</td>
|
||
<td style="text-align:right">extension to be used for dest files.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h3 id="two-tables-adjacent">Two tables adjacent</h3>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Option</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>ext</td>
|
||
<td>extension to be used for dest files.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Option</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>ext</td>
|
||
<td>extension to be used for dest files.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h2 id="links">Links</h2>
|
||
<h3 id="basic-link">Basic link</h3>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">[<span class="nt">Assemble</span>](<span class="na">http://assemble.io</span>)
|
||
</span></span></code></pre></div><p>Renders to (hover over the link, there is no tooltip):</p>
|
||
<p><a href="http://assemble.io">Assemble</a></p>
|
||
<p>HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">"http://assemble.io"</span><span class="p">></span>Assemble<span class="p"></</span><span class="nt">a</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="add-a-tooltip">Add a tooltip</h3>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">[<span class="nt">Upstage</span>](<span class="na">https://github.com/upstage/ "Visit Upstage!"</span>)
|
||
</span></span></code></pre></div><p>Renders to (hover over the link, there should be a tooltip):</p>
|
||
<p><a href="https://github.com/upstage/" title="Visit Upstage!">Upstage</a></p>
|
||
<p>HTML:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p"><</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">"https://github.com/upstage/"</span> <span class="na">title</span><span class="o">=</span><span class="s">"Visit Upstage!"</span><span class="p">></span>Upstage<span class="p"></</span><span class="nt">a</span><span class="p">></span>
|
||
</span></span></code></pre></div><h3 id="named-anchors">Named Anchors</h3>
|
||
<p>Named anchors enable you to jump to the specified anchor point on the same page. For example, each of these chapters:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="gh"># Table of Contents
|
||
</span></span></span><span class="line"><span class="cl"><span class="gh"></span>
|
||
</span></span><span class="line"><span class="cl"><span class="k">-</span> [<span class="nt">Chapter 1</span>](<span class="na">#chapter-1</span>)
|
||
</span></span><span class="line"><span class="cl"><span class="k">-</span> [<span class="nt">Chapter 2</span>](<span class="na">#chapter-2</span>)
|
||
</span></span><span class="line"><span class="cl"><span class="k">-</span> [<span class="nt">Chapter 3</span>](<span class="na">#chapter-3</span>)
|
||
</span></span></code></pre></div><p>will jump to these sections:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="gu">## Chapter 1 <a id="chapter-1"></a>
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu"></span>Content for chapter one.
|
||
</span></span><span class="line"><span class="cl">
|
||
</span></span><span class="line"><span class="cl"><span class="gu">## Chapter 2 <a id="chapter-2"></a>
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu"></span>Content for chapter one.
|
||
</span></span><span class="line"><span class="cl">
|
||
</span></span><span class="line"><span class="cl"><span class="gu">## Chapter 3 <a id="chapter-3"></a>
|
||
</span></span></span><span class="line"><span class="cl"><span class="gu"></span>Content for chapter one.
|
||
</span></span></code></pre></div>
|
||
<div class="box notices cstyle note">
|
||
<div class="box-label"><i class="fa-fw fas fa-exclamation-circle"></i> Note</div>
|
||
<div class="box-content">
|
||
<p>Note 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>
|
||
</div>
|
||
</div>
|
||
<h2 id="images">Images</h2>
|
||
<p>Images have a similar syntax to links but include a preceding exclamation mark:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Spock</span>](<span class="na">https://octodex.github.com/images/spocktocat.png</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/spocktocat.png?width=20vw" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/spocktocat.png?width=20vw" alt="Spock" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<p>Like links, images also have a footnote style syntax, resulting in a tooltip:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Picard</span>](<span class="na">https://octodex.github.com/images/jean-luc-picat.jpg "Jean Luc Picard"</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/jean-luc-picat.jpg?width=20vw" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/jean-luc-picat.jpg?width=20vw" alt="Picard" title="Jean Luc Picard" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<p>Images can also be linked by reference ID to later define the URL location:</p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![La Forge][laforge]
|
||
</span></span><span class="line"><span class="cl">
|
||
</span></span><span class="line"><span class="cl">[laforge]: https://octodex.github.com/images/trekkie.jpg "Geordi La Forge"
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/trekkie.jpg?width=20vw" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/trekkie.jpg?width=20vw" alt="La Forge" title="Geordi La Forge" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<h3 id="further-image-formatting">Further image formatting</h3>
|
||
<p>The Hugo Markdown parser supports additional non-standard functionality.</p>
|
||
<h4 id="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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Minion</span>](<span class="na">https://octodex.github.com/images/minion.png?width=20vw</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/minion.png?width=20vw" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/minion.png?width=20vw" alt="Minion" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Minion</span>](<span class="na">https://octodex.github.com/images/minion.png?height=50px</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/minion.png?height=50px" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/minion.png?height=50px" alt="Minion" style="height: 50px; width: auto;" loading="lazy">
|
||
</a></p>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Minion</span>](<span class="na">https://octodex.github.com/images/minion.png?height=50px&width=40vw</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
|
||
<a href="https://octodex.github.com/images/minion.png?height=50px&width=40vw" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/minion.png?height=50px&width=40vw" alt="Minion" style="height: 50px; width: 40vw;" loading="lazy">
|
||
</a></p>
|
||
<h4 id="add-css-classes">Add CSS classes</h4>
|
||
<p>Add a HTTP <code>classes</code> parameter to the link image to add CSS classes. Add some of the predefined values or even define your own in your CSS.</p>
|
||
<h5 id="shadow">shadow</h5>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Spidertocat</span>](<span class="na">https://octodex.github.com/images/spidertocat.png?classes=shadow</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/spidertocat.png?width=20vw&classes=shadow" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/spidertocat.png?width=20vw&classes=shadow" alt="Spidertocat" class="shadow" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<h5 id="border">border</h5>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">DrOctocat</span>](<span class="na">https://octodex.github.com/images/droctocat.png?classes=border</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/droctocat.png?width=20vw&classes=border" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/droctocat.png?width=20vw&classes=border" alt="DrOctocat" class="border" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<h5 id="left">left</h5>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Supertocat</span>](<span class="na">https://octodex.github.com/images/okal-eltocat.jpg?classes=left</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/okal-eltocat.jpg?width=20vw&classes=left" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/okal-eltocat.jpg?width=20vw&classes=left" alt="Supertocat" class="left" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<h5 id="right">right</h5>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Riddlocat</span>](<span class="na">https://octodex.github.com/images/riddlocat.jpg?classes=right</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/riddlocat.jpg?width=20vw&classes=right" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/riddlocat.jpg?width=20vw&classes=right" alt="Riddlocat" class="right" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<h5 id="inline">inline</h5>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Spidertocat</span>](<span class="na">https://octodex.github.com/images/spidertocat.png?classes=inline</span>)
|
||
</span></span><span class="line"><span class="cl">![<span class="nt">DrOctocat</span>](<span class="na">https://octodex.github.com/images/droctocat.png?classes=inline</span>)
|
||
</span></span><span class="line"><span class="cl">![<span class="nt">Supertocat</span>](<span class="na">https://octodex.github.com/images/okal-eltocat.jpg?classes=inline</span>)
|
||
</span></span><span class="line"><span class="cl">![<span class="nt">Riddlocat</span>](<span class="na">https://octodex.github.com/images/riddlocat.jpg?classes=inline</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/spidertocat.png?width=10vw&classes=inline" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/spidertocat.png?width=10vw&classes=inline" alt="Spidertocat" class="inline" style="height: auto; width: 10vw;" loading="lazy">
|
||
</a>
|
||
|
||
|
||
<a href="https://octodex.github.com/images/droctocat.png?width=10vw&classes=inline" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/droctocat.png?width=10vw&classes=inline" alt="DrOctocat" class="inline" style="height: auto; width: 10vw;" loading="lazy">
|
||
</a>
|
||
|
||
|
||
<a href="https://octodex.github.com/images/okal-eltocat.jpg?width=10vw&classes=inline" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/okal-eltocat.jpg?width=10vw&classes=inline" alt="Supertocat" class="inline" style="height: auto; width: 10vw;" loading="lazy">
|
||
</a>
|
||
|
||
|
||
<a href="https://octodex.github.com/images/riddlocat.jpg?width=10vw&classes=inline" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/riddlocat.jpg?width=10vw&classes=inline" alt="Riddlocat" class="inline" style="height: auto; width: 10vw;" loading="lazy">
|
||
</a></p>
|
||
<h5 id="combination">Combination</h5>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">X-tocat</span>](<span class="na">https://octodex.github.com/images/xtocat.jpg?width=20vw&classes=shadow,border,left</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<a href="https://octodex.github.com/images/xtocat.jpg?width=20vw&classes=shadow,border,left" data-featherlight="image">
|
||
<img src="https://octodex.github.com/images/xtocat.jpg?width=20vw&classes=shadow,border,left" alt="X-tocat" class="shadow border left" style="height: auto; width: 20vw;" loading="lazy">
|
||
</a></p>
|
||
<h4 id="lightbox">Lightbox</h4>
|
||
<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>
|
||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Homercat</span>](<span class="na">https://octodex.github.com/images/homercat.png?featherlight=false</span>)
|
||
</span></span></code></pre></div><p>
|
||
|
||
<img src="https://octodex.github.com/images/homercat.png?width=20vw&featherlight=false" alt="Homercat" style="height: auto; width: 20vw;" loading="lazy"></p>
|
||
|
||
<footer class="footline">
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
</main>
|
||
</div>
|
||
<script src="../../js/clipboard.min.js?1669856385" defer></script>
|
||
<script src="../../js/perfect-scrollbar.min.js?1669856385" defer></script>
|
||
<script src="../../js/featherlight.min.js?1669856385" defer></script>
|
||
<script src="../../js/theme.js?1669856385" defer></script>
|
||
</body>
|
||
</html>
|