373 lines
15 KiB
HTML
373 lines
15 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Markdown Syntax Guide | Flat theme</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/lib/icofont/icofont.min.css" />
|
|
<link rel="stylesheet" href="/css/syntax.css" />
|
|
<link rel="stylesheet" href="/css/style.css" />
|
|
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<header class="header-wrapper">
|
|
<div class="header">
|
|
<a class="site-title" href="">Flat theme</a>
|
|
|
|
<ul class="menu">
|
|
|
|
<li class="menu-item">
|
|
|
|
<a href="/posts/">Posts</a>
|
|
|
|
</li>
|
|
|
|
<li class="menu-item">
|
|
|
|
<a href="/essays/">Essays</a>
|
|
|
|
</li>
|
|
|
|
<li class="menu-item">
|
|
|
|
<a>Services↓</a>
|
|
<ul class="sub-menu">
|
|
|
|
<li class="menu-item"><a href="#">Service A</a></li>
|
|
|
|
<li class="menu-item"><a href="#">Service B</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="menu-item">
|
|
|
|
<a href="/about/">About</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="main-wrapper">
|
|
<div class="main">
|
|
|
|
|
|
<section class="single">
|
|
<h1 class="title">Markdown Syntax Guide</h1>
|
|
|
|
<div class="tip">
|
|
<time datetime="2019-03-11 00:00:00 +0000 UTC">2019/03/11</time>
|
|
<span class="split">·</span>
|
|
<span> 450 words </span>
|
|
<span class="split">·</span>
|
|
<span>
|
|
3 minutes to read
|
|
</span>
|
|
</div>
|
|
|
|
<div class="taxonomies">
|
|
|
|
<div>
|
|
Categories:
|
|
|
|
<a href="/categories/themes">themes</a>
|
|
|
|
<a href="/categories/syntax">syntax</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
Tags:
|
|
|
|
<a href="/tags/markdown">markdown</a>
|
|
|
|
<a href="/tags/css">css</a>
|
|
|
|
<a href="/tags/html">html</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div class="content">
|
|
<p>This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.</p>
|
|
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code><h1></code>—<code><h6></code> elements represent six levels of section headings. <code><h1></code> is the highest section level while <code><h6></code> is the lowest.</p>
|
|
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.</p>
|
|
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
|
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
|
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
|
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
|
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
|
</blockquote>
|
|
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
|
<p>Don’t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
|
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
|
</blockquote>
|
|
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Age</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Bob</td>
|
|
<td>27</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Alice</td>
|
|
<td>23</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
|
<thead>
|
|
<tr>
|
|
<th>Italics</th>
|
|
<th>Bold</th>
|
|
<th>Code</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><em>italics</em></td>
|
|
<td><strong>bold</strong></td>
|
|
<td><code>code</code></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp"><!doctype html></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">"en"</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">head</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">"utf-8"</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">title</span><span class="p">></span>Example HTML5 Document<span class="p"></</span><span class="nt">title</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">head</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">body</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>Test<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">body</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">html</span><span class="p">></span>
|
|
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code><!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Example HTML5 Document</title>
|
|
</head>
|
|
<body>
|
|
<p>Test</p>
|
|
</body>
|
|
</html>
|
|
</code></pre>
|
|
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo’s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp"><!doctype html></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">"en"</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">head</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">"utf-8"</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">title</span><span class="p">></span>Example HTML5 Document<span class="p"></</span><span class="nt">title</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">head</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">body</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>Test<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">body</span><span class="p">></span>
|
|
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">html</span><span class="p">></span></span></span></code></pre></div>
|
|
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
|
<li>First item</li>
|
|
<li>Second item</li>
|
|
<li>Third item</li>
|
|
</ol>
|
|
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
|
<li>List item</li>
|
|
<li>Another item</li>
|
|
<li>And another item</li>
|
|
</ul>
|
|
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
|
<li>Fruit
|
|
<ul>
|
|
<li>Apple</li>
|
|
<li>Orange</li>
|
|
<li>Banana</li>
|
|
</ul>
|
|
</li>
|
|
<li>Dairy
|
|
<ul>
|
|
<li>Milk</li>
|
|
<li>Cheese</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
|
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
|
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
|
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
|
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
|
<div class="footnotes" role="doc-endnotes">
|
|
<hr>
|
|
<ol>
|
|
<li id="fn:1">
|
|
<p>The above quote is excerpted from Rob Pike’s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015. <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</div>
|
|
<div class="side">
|
|
|
|
<div class="side-recent">
|
|
<h2 class="side-title">Recent Posts</h2>
|
|
<hr />
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/posts/placeholder-text/">Placeholder Text</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/posts/math-typesetting/">Math Typesetting</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/posts/emoji-support/">Emoji Support</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div class="side-recent">
|
|
<h2 class="side-title">Recent Essays</h2>
|
|
<hr />
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="/essays/what-is-hugo/">What Is Hugo</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div class="side-categories">
|
|
<h2>Categories</h2>
|
|
<hr />
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="/categories/syntax">syntax(1)</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/categories/themes">themes(1)</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="side-tags">
|
|
<h2>Tags</h2>
|
|
<hr />
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="/tags/css">css (1)</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/tags/emoji">emoji (1)</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/tags/html">html (1)</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/tags/markdown">markdown (2)</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/tags/text">text (1)</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</main>
|
|
<footer class="footer">
|
|
<div class="footer-row">
|
|
|
|
|
|
|
|
<a class="footer-item" href="/posts/index.xml">
|
|
Feed of Posts
|
|
<i class="icofont-rss"></i>
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a class="footer-item" href="/essays/index.xml">
|
|
Feed of Essays
|
|
<i class="icofont-rss"></i>
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="footer-row">
|
|
|
|
|
|
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="footer-row">
|
|
|
|
|
|
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
|
|
|
|
|
|
|
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
|
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
</html>
|