<!doctype html><htmllang=en><head><metacharset=utf-8><metaname=viewportcontent="width=device-width,initial-scale=1"><metaproperty="og:title"content="Markdown Syntax Guide"><metaproperty="og:description"content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."><metaproperty="og:type"content="article"><metaproperty="og:url"content="https://mivinci.github.io/hugo-theme-minima/markdown-syntax/"><metaproperty="article:section"content><metaproperty="article:published_time"content="2021-07-18T10:52:59+08:00"><metaproperty="article:modified_time"content="2021-07-18T10:52:59+08:00"><metaname=twitter:cardcontent="summary"><metaname=twitter:titlecontent="Markdown Syntax Guide"><metaname=twitter:descriptioncontent="Sample article showcasing basic Markdown syntax and formatting for HTML elements."><metaname=theme-colormedia="(prefers-color-scheme: light)"content="#ffffff"><metaname=theme-colormedia="(prefers-color-scheme: dark)"content="#262d33"><title>Hugo on Minima - Markdown Syntax Guide</title><linkrel="shortcut icon"href=/hugo-theme-minima/favicon.icotype=image/x-icon><linkrel=stylesheethref=/hugo-theme-minima/minima.1667920293.css><scriptdefertype=text/javascriptsrc=/hugo-theme-minima/minima.1667920293.js></script><linkrel=alternatehreflang=zh-cnhref=https://mivinci.github.io/hugo-theme-minima/zh-cn/markdown-syntax/title=ZH></head><script>lettheme_2b_used=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';try{if(!('theme'inlocalStorage)){consta='system';(a==='dark'||a==='light')&&(theme_2b_used=a),localStorage.theme=theme_2b_used}document.querySelector('html').classList.add(localStorage.theme)}catch(a){console.error(a)}</script><body><headerclass="mt-3 mb-6"><divclass="container mx-auto"><navclass="flex justify-between items-center"><divclass="flex items-center"><divid=theme-switcherclass="text-3xl cursor-pointer">🌝</div></div><ulclass="flexitems-centerfont-medium
whitespace-nowrap overflow-x-auto overflow-y-hidden"><liclass="ml-1 mr-1"><ahref=https://mivinci.github.io/hugo-theme-minima/>Home</a></li><liclass="ml-1 mr-1"><ahref=https://mivinci.github.io/hugo-theme-minima/tags>Tags</a></li><liclass="ml-1 mr-1"><ahref=https://mivinci.github.io/hugo-theme-minima/series>Series</a></li><liclass="ml-1 mr-1"><ahref=https://mivinci.github.io/hugo-theme-minima/about>About</a></li></ul><ulclass="flex item-center text-sm font-bold"><liclass=ml-2><ahref=https://mivinci.github.io/hugo-theme-minima/>EN</a></li><liclass=ml-2><ahref=https://mivinci.github.io/hugo-theme-minima/zh-cn/>ZH</a></li></ul></nav></div></header><divclass="container mx-auto"><h1class="text-4xl font-extrabold mt-6 mb-6">Markdown Syntax Guide</h1><divclass="mb-3 text-sm flex justify-between"><div>Post at — Jul 18, 2021</div><div><aclass=ml-1href=/tags/markdown>#markdown</a></div></div><main><p>Sample article showcasing basic Markdown syntax and formatting for HTML elements.</p><articleclass=md><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><h2id=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><h1id=h1>H1</h1><h2id=h2>H2</h2><h3id=h3>H3</h3><h4id=h4>H4</h4><h5id=h5>H5</h5><h6id=h6>H6</h6><h2id=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><h2id=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><h4id=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><h4id=blockquote-with-attribution>Blockquote with attribution</h4><blockquote><p>Don’t communicate by sharing memory, share memory by communicating.
— Rob Pike<supid=fnref:1><ahref=#fn:1class=footnote-refrole=doc-noteref>1</a></sup></p></blockquote><h2id=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><thstyle=text-align:center>Name</th><thstyle=text-align:center>Age</th></tr></thead><tbody><tr><tdstyle=text-align:center>Bob</td><tdstyle=text-align:center>27</td></tr><tr><tdstyle=text-align:center>Alice</td><tdstyle=text-align:center>23</td></tr></tbody></table><h4id=inline-markdown-within-tables>Inline Markdown within tables</h4><table><thead><tr><thstyle=text-align:center>Italics</th><thstyle=text-align:center>Bold</th><thstyle=text-align:center>Code</th></tr></thead><tbody><tr><tdstyle=text-align:center><em>italics</em></td><tdstyle=text-align:center><strong>bold</strong></td><tdstyle=text-align:center><code>code</code></td></tr></tbody></table><h2id=code-blocks>Code Blocks</h2><h4id=code-block-with-backticks>Code block with backticks</h4><divclass=highlight><divclass=chroma><tableclass=lntable><tr><tdclass=lntd><preclass=chroma><code><spanclass=lnt> 1
</code></pre></td></tr></table></div></div><h4id=code-block-indented-with-four-spaces>Code block indented with four spaces</h4><pre><code><!doctype html>
</code></pre><h4id=code-block-with-golang>Code block with Golang</h4><divclass=highlight><divclass=chroma><tableclass=lntable><tr><tdclass=lntd><preclass=chroma><code><spanclass=lnt>1
</code></pre></td></tr></table></div></div><h4id=code-block-with-c艹>Code block with C艹</h4><divclass=highlight><divclass=chroma><tableclass=lntable><tr><tdclass=lntd><preclass=chroma><code><spanclass=lnt> 1
</code></pre></td></tr></table></div></div><h4id=code-block-with-java>Code block with Java</h4><divclass=highlight><divclass=chroma><tableclass=lntable><tr><tdclass=lntd><preclass=chroma><code><spanclass=lnt> 1
</code></pre></td></tr></table></div></div><h4id=code-block-with-python>Code block with Python</h4><divclass=highlight><divclass=chroma><tableclass=lntable><tr><tdclass=lntd><preclass=chroma><code><spanclass=lnt>1