update
This commit is contained in:
@@ -0,0 +1,294 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head><meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Markdown syntax</title>
|
||||
|
||||
<link rel="icon" href="/images/hugo.png" type="image/gif">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/css/head_foot.css">
|
||||
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Alata&display=swap" rel="stylesheet"><meta name="description" content="Markdown syntax" />
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/css/blog.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body><nav class="navbar navbar-expand-lg sticky-top navbar-light bg-light">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="https://hugo-blog0.netlify.app/">Hugo-blog</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
|
||||
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://hugo-blog0.netlify.app/#home">Home</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://hugo-blog0.netlify.app/blog">Blog</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-8">
|
||||
|
||||
|
||||
<div>
|
||||
<br>
|
||||
<h1>Markdown syntax</h1>
|
||||
<div class="text-muted">
|
||||
|
||||
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-calendar" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1zm1-3a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2z" />
|
||||
<path fill-rule="evenodd"
|
||||
d="M3.5 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5zm9 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5z" />
|
||||
</svg>
|
||||
Aug 11, 2020
|
||||
|
||||
|
||||
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-person-fill" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" />
|
||||
</svg>
|
||||
Gurusabarish
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="https://github.com/gurusabarish/Hugo-blog" target="_blank" title="Edit on github">
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil float-right" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M11.293 1.293a1 1 0 0 1 1.414 0l2 2a1 1 0 0 1 0 1.414l-9 9a1 1 0 0 1-.39.242l-3 1a1 1 0 0 1-1.266-1.265l1-3a1 1 0 0 1 .242-.391l9-9zM12 2l2 2-9 9-3 1 1-3 9-9z" />
|
||||
<path fill-rule="evenodd"
|
||||
d="M12.146 6.354l-2.5-2.5.708-.708 2.5 2.5-.707.708zM3 10v.5a.5.5 0 0 0 .5.5H4v.5a.5.5 0 0 0 .5.5H5v.5a.5.5 0 0 0 .5.5H6v-1.5a.5.5 0 0 0-.5-.5H5v-.5a.5.5 0 0 0-.5-.5H3z" />
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
<div>
|
||||
|
||||
<img class="img-fluid" src="https://hugo-blog0.netlify.app/images/bg-image.jpg">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
<div><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</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</h1>
|
||||
<h2 id="h2">H2</h2>
|
||||
<h3 id="h3">H3</h3>
|
||||
<h4 id="h4">H4</h4>
|
||||
<h5 id="h5">H5</h5>
|
||||
<h6 id="h6">H6</h6>
|
||||
<h2 id="paragraph">Paragraph</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</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</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</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</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</h4>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Inline </th>
|
||||
<th>Markdown </th>
|
||||
<th>In </th>
|
||||
<th>Table</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><em>italics</em></td>
|
||||
<td><strong>bold</strong></td>
|
||||
<td><del>strikethrough</del> </td>
|
||||
<td><code>code</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="code-blocks">Code Blocks</h2>
|
||||
<h4 id="code-block-with-backticks">Code block with backticks</h4>
|
||||
<pre><code>html
|
||||
<!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-indented-with-four-spaces">Code block indented with four spaces</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</h4>
|
||||
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-html" data-lang="html"><span style="color:#75715e"><!DOCTYPE html></span>
|
||||
<<span style="color:#f92672">html</span> <span style="color:#a6e22e">lang</span><span style="color:#f92672">=</span><span style="color:#e6db74">"en"</span>>
|
||||
<<span style="color:#f92672">head</span>>
|
||||
<<span style="color:#f92672">meta</span> <span style="color:#a6e22e">charset</span><span style="color:#f92672">=</span><span style="color:#e6db74">"UTF-8"</span>>
|
||||
<<span style="color:#f92672">title</span>>Example HTML5 Document</<span style="color:#f92672">title</span>>
|
||||
</<span style="color:#f92672">head</span>>
|
||||
<<span style="color:#f92672">body</span>>
|
||||
<<span style="color:#f92672">p</span>>Test</<span style="color:#f92672">p</span>>
|
||||
</<span style="color:#f92672">body</span>>
|
||||
</<span style="color:#f92672">html</span>></code></pre></div>
|
||||
<h2 id="list-types">List Types</h2>
|
||||
<h4 id="ordered-list">Ordered List</h4>
|
||||
<ol>
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item</li>
|
||||
</ol>
|
||||
<h4 id="unordered-list">Unordered List</h4>
|
||||
<ul>
|
||||
<li>List item</li>
|
||||
<li>Another item</li>
|
||||
<li>And another item</li>
|
||||
</ul>
|
||||
<h4 id="nested-list">Nested list</h4>
|
||||
<ul>
|
||||
<li>Item</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li>First Sub-item</li>
|
||||
<li>Second Sub-item</li>
|
||||
</ol>
|
||||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark</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>
|
||||
<section class="footnotes" role="doc-endnotes">
|
||||
<hr>
|
||||
<ol>
|
||||
<li id="fn:1" role="doc-endnote">
|
||||
<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>
|
||||
</section></div>
|
||||
|
||||
|
||||
<div class="text-center text-muted">
|
||||
<hr>
|
||||
<div class="h4">Tags</div>
|
||||
|
||||
|
||||
<a href="/tags/markdown">
|
||||
<button class="btn rounded-pill border border-info">markdown</button>
|
||||
</a>
|
||||
|
||||
<a href="/tags/css">
|
||||
<button class="btn rounded-pill border border-info">css</button>
|
||||
</a>
|
||||
|
||||
<a href="/tags/html">
|
||||
<button class="btn rounded-pill border border-info">html</button>
|
||||
</a>
|
||||
|
||||
<a href="/tags/themes">
|
||||
<button class="btn rounded-pill border border-info">themes</button>
|
||||
</a>
|
||||
|
||||
<a href="/tags/blog">
|
||||
<button class="btn rounded-pill border border-info">blog</button>
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="footer py-3 text-muted text-center">
|
||||
<p>
|
||||
© 2020 All Rights Reserved<br>
|
||||
|
||||
<a href="https://hugo-blog0.netlify.app/">Hugo-blog</a> made with
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-heart" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M8 2.748l-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
|
||||
</svg>
|
||||
and
|
||||
<a href="https://gohugo.io" target="_blank">Hugo</a>
|
||||
|
||||
by
|
||||
<a href="https://github.com/gurusabarish" target="_blank">Gurusabarish</a>
|
||||
</p>
|
||||
|
||||
</footer>
|
||||
<script src="/js/jquery.slim.min.js"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/all.js"></script></body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user