<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Writing on TECHFOR by Suriya Sonphu</title><link>http://suriyasonphu.com/en/tags/writing/</link><description>Recent content in Writing on TECHFOR by Suriya Sonphu</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 28 May 2025 00:00:00 +0000</lastBuildDate><atom:link href="http://suriyasonphu.com/en/tags/writing/index.xml" rel="self" type="application/rss+xml"/><item><title>Markdown Syntax Guide</title><link>http://suriyasonphu.com/en/post/markdown-syntax/</link><pubDate>Wed, 28 May 2025 00:00:00 +0000</pubDate><guid>http://suriyasonphu.com/en/post/markdown-syntax/</guid><description>&lt;img src="http://suriyasonphu.com/post/markdown-syntax/markdown-image-800.webp" alt="Featured image of post Markdown Syntax Guide" />&lt;p>This guide demonstrates the Markdown syntax you can use in Hugo blog posts. Each section includes both the Markdown code and its rendered output.&lt;/p>
&lt;h2 id="basic-syntax">Basic Syntax
&lt;/h2>&lt;h3 id="headers">Headers
&lt;/h3>&lt;p>In Markdown, you create headers using the &lt;code>#&lt;/code> symbol. The number of &lt;code>#&lt;/code> determines the header level:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span># Header 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">## Header 2
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">### Header 3
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#### Header 4
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">##### Header 5
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">###### Header 6
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="text-formatting">Text Formatting
&lt;/h3>&lt;p>Here&amp;rsquo;s how to format text in different ways:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>**Bold text** or &lt;span style="font-weight:bold">__bold text__&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="font-style:italic">*Italic text*&lt;/span> or &lt;span style="font-style:italic">_italic text_&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="font-style:italic">**&lt;/span>*Bold and italic text***
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">~~Strikethrough text~~&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Renders as:&lt;/p>
&lt;p>&lt;strong>Bold text&lt;/strong> or &lt;strong>bold text&lt;/strong>
&lt;em>Italic text&lt;/em> or &lt;em>italic text&lt;/em>
&lt;em>&lt;strong>Bold and italic text&lt;/strong>&lt;/em>
&lt;del>Strikethrough text&lt;/del>&lt;/p>
&lt;h3 id="links">Links
&lt;/h3>&lt;p>There are several ways to create links:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>[&lt;span style="color:#f92672">Basic link to Google&lt;/span>](&lt;span style="color:#a6e22e">https://www.google.com&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[&lt;span style="color:#f92672">Link with title&lt;/span>](&lt;span style="color:#a6e22e">https://www.google.com &amp;#34;Google&amp;#39;s Homepage&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[Reference link][reference-id]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[reference-id]: https://www.google.com
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="images">Images
&lt;/h3>&lt;p>Images are similar to links but start with an exclamation mark:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>![&lt;span style="color:#f92672">Alt text for the image&lt;/span>](&lt;span style="color:#a6e22e">markdown-image.png &amp;#34;Optional title&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="lists">Lists
&lt;/h3>&lt;h4 id="unordered-lists">Unordered Lists
&lt;/h4>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">*&lt;/span> First item
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">*&lt;/span> Second item
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">*&lt;/span> Nested item
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">*&lt;/span> Another nested item
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">*&lt;/span> Third item
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Renders as:&lt;/p>
&lt;ul>
&lt;li>First item&lt;/li>
&lt;li>Second item
&lt;ul>
&lt;li>Nested item&lt;/li>
&lt;li>Another nested item&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Third item&lt;/li>
&lt;/ul>
&lt;h4 id="ordered-lists">Ordered Lists
&lt;/h4>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">1.&lt;/span> First step
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">2.&lt;/span> Second step
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">1.&lt;/span> Sub-step A
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">2.&lt;/span> Sub-step B
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">3.&lt;/span> Third step
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Renders as:&lt;/p>
&lt;ol>
&lt;li>First step&lt;/li>
&lt;li>Second step
&lt;ol>
&lt;li>Sub-step A&lt;/li>
&lt;li>Sub-step B&lt;/li>
&lt;/ol>
&lt;/li>
&lt;li>Third step&lt;/li>
&lt;/ol>
&lt;h3 id="code">Code
&lt;/h3>&lt;h4 id="inline-code">Inline Code
&lt;/h4>&lt;p>Use backticks for &lt;code>inline code&lt;/code>.&lt;/p>
&lt;h4 id="code-blocks">Code Blocks
&lt;/h4>&lt;p>For multiple lines of code, use triple backticks with optional language specification:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">def&lt;/span> &lt;span style="color:#a6e22e">hello_world&lt;/span>():
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> print(&lt;span style="color:#e6db74">&amp;#34;Hello, World!&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-javascript" data-lang="javascript">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">function&lt;/span> &lt;span style="color:#a6e22e">sayHello&lt;/span>() {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">console&lt;/span>.&lt;span style="color:#a6e22e">log&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;Hello, World!&amp;#34;&lt;/span>);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="tables">Tables
&lt;/h3>&lt;p>Create tables using pipes and hyphens:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>| Header 1 | Header 2 | Header 3 |
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>|----------|----------|----------|
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>| Cell 1 | Cell 2 | Cell 3 |
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>| Cell 4 | Cell 5 | Cell 6 |
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Renders as:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Header 1&lt;/th>
&lt;th>Header 2&lt;/th>
&lt;th>Header 3&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Cell 1&lt;/td>
&lt;td>Cell 2&lt;/td>
&lt;td>Cell 3&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cell 4&lt;/td>
&lt;td>Cell 5&lt;/td>
&lt;td>Cell 6&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="blockquotes">Blockquotes
&lt;/h3>&lt;p>For quotes and citations:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">&amp;gt; &lt;/span>&lt;span style="font-style:italic">This is a blockquote
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="font-style:italic">&lt;/span>&lt;span style="color:#66d9ef">&amp;gt; &lt;/span>&lt;span style="font-style:italic">It can span multiple lines
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="font-style:italic">&lt;/span>&lt;span style="color:#66d9ef">&amp;gt;
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">&lt;/span>&lt;span style="font-style:italic">&amp;gt; &amp;gt; And can be nested
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Renders as:&lt;/p>
&lt;blockquote>
&lt;p>This is a blockquote
It can span multiple lines&lt;/p>
&lt;blockquote>
&lt;p>And can be nested&lt;/p>&lt;/blockquote>&lt;/blockquote>
&lt;h3 id="task-lists">Task Lists
&lt;/h3>&lt;p>Create checkable task lists:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">- [x]&lt;/span> Completed task
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">- [ ]&lt;/span> Incomplete task
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">- [x]&lt;/span> Another completed task
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Renders as:&lt;/p>
&lt;ul>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Completed task&lt;/li>
&lt;li>&lt;input disabled="" type="checkbox"> Incomplete task&lt;/li>
&lt;li>&lt;input checked="" disabled="" type="checkbox"> Another completed task&lt;/li>
&lt;/ul>
&lt;h2 id="advanced-features">Advanced Features
&lt;/h2>&lt;h3 id="footnotes">Footnotes
&lt;/h3>&lt;p>Add footnotes to your text&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>.&lt;/p>
&lt;h3 id="definition-lists">Definition Lists
&lt;/h3>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-markdown" data-lang="markdown">&lt;span style="display:flex;">&lt;span>Term
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>: Definition for the term
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>: Another definition for the term
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Another Term
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>: Definition of another term
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="emoji">Emoji
&lt;/h3>&lt;p>Many Markdown processors support emoji shortcodes:
&amp;#x1f604; &amp;#x2764;&amp;#xfe0f; &amp;#x1f44d;&lt;/p>
&lt;h2 id="tips-for-blog-writing">Tips for Blog Writing
&lt;/h2>&lt;ol>
&lt;li>Use headers to organize your content&lt;/li>
&lt;li>Include code blocks with syntax highlighting when sharing code&lt;/li>
&lt;li>Use lists to break down complex information&lt;/li>
&lt;li>Add images to make your posts more engaging&lt;/li>
&lt;li>Use blockquotes to highlight important information&lt;/li>
&lt;li>Include links to reference materials&lt;/li>
&lt;/ol>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>This guide covers the most commonly used Markdown syntax for blog writing. For more detailed information, visit the &lt;a class="link" href="https://www.markdownguide.org/" target="_blank" rel="noopener"
>official Markdown guide&lt;/a>.&lt;/p>
&lt;div class="footnotes" role="doc-endnotes">
&lt;hr>
&lt;ol>
&lt;li id="fn:1">
&lt;p>This is a footnote.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;/div></description></item></channel></rss>