<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged trick</title>
<link>https://coderlegion.com/tag/trick</link>
<description>Powered by Question2Answer</description>
<item>
<title>Beginner’s Guide to GitHub-Flavoured Markdown</title>
<link>https://coderlegion.com/3191/beginners-guide-to-github-flavoured-markdown</link>
<description>&lt;h2 id=&quot;beginner-s-guide-to-github-flavoured-markdown&quot;&gt;Beginner’s Guide to GitHub-Flavoured Markdown&lt;/h2&gt;
&lt;p&gt;CoderLegion's markdown has limited rendering features and has no syntax highlighting, consult original post for more: &lt;a rel=&quot;nofollow&quot; href=&quot;https://wiki.methodox.io/en/KnowledgeBase/Markdown&quot;&gt;https://wiki.methodox.io/en/KnowledgeBase/Markdown&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;1-introduction&quot;&gt;1. Introduction&lt;/h3&gt;
&lt;h4 id=&quot;1-1-why-markdown-rocks-&quot;&gt;1.1 Why Markdown Rocks ✨&lt;/h4&gt;
&lt;p&gt;Markdown is &lt;em&gt;plain text with super-powers&lt;/em&gt;. It lets you jot notes, write docs, craft blog posts, even format PDFs - all without leaving the comfort of your favourite text editor.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Human-friendly&lt;/strong&gt; – readable in raw form, so your future self (and collaborators) can skim it in any terminal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Portable&lt;/strong&gt; – works on GitHub, GitLab, Stack Overflow, Jira, Notion, countless CMSes and static-site generators.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Speedy&lt;/strong&gt; – no buttons or WYSIWYG mysteries; just type.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Version-control bliss&lt;/strong&gt; – diffs stay clean because it’s plain text.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;1-2-where-you-ll-meet-markdown&quot;&gt;1.2 Where You’ll Meet Markdown&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;README files, issue &amp;amp; PR templates on GitHub.&lt;/li&gt;
&lt;li&gt;Technical blogs (Jekyll, Hugo, Astro, etc.).&lt;/li&gt;
&lt;li&gt;Docs sites (Docsify, MkDocs, Docusaurus).&lt;/li&gt;
&lt;li&gt;Note-taking apps (Obsidian, Logseq, Typora).&lt;/li&gt;
&lt;li&gt;Chat &amp;amp; community tools (Telegram, Discord, Slack, Discourse).&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;1-3-little-wonders-you-can-do&quot;&gt;1.3 Little Wonders You Can Do&lt;/h4&gt;
&lt;blockquote&gt;&lt;p&gt;Markdown’s magic is that every one of those tricks is still perfectly legible in raw text.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;| Wonder | What happens |&lt;br&gt;
| - | - | - |&lt;br&gt;
| &lt;strong&gt;Task lists&lt;/strong&gt; | Interactive check-boxes in GitHub issues. |&lt;br&gt;
| &lt;strong&gt;Syntax-highlight&lt;/strong&gt; | Colours like an IDE! |&lt;br&gt;
| &lt;strong&gt;Tables&lt;/strong&gt; | Nicely aligned grids. |&lt;br&gt;
| &lt;strong&gt;Collapsible blocks&lt;/strong&gt; | Click to reveal secrets. |&lt;br&gt;
| &lt;strong&gt;Emoji&lt;/strong&gt; | Turns into  . |&lt;/p&gt;
&lt;p&gt;(CoderLegion's markdown has limited rendering features and has no syntax highlighting, consult &lt;a rel=&quot;nofollow&quot; href=&quot;https://wiki.methodox.io/en/KnowledgeBase/Markdown&quot;&gt;original post&lt;/a&gt;)&lt;/p&gt;
&lt;h3 id=&quot;2-quick-reference-cheat-sheet-&quot;&gt;2 · Quick Reference (Cheat Sheet)&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Try every sample in a &lt;code&gt;.md&lt;/code&gt; file on GitHub and hit &lt;em&gt;Preview&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4 id=&quot;2-1-headings&quot;&gt;2.1 Headings&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;# H1
## H2
### H3
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Rendered ⇒&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;peek&lt;/summary&gt;
  # H1

  ## H2

  ### H3
&lt;/details&gt;
&lt;h4 id=&quot;2-2-emphasis&quot;&gt;2.2 Emphasis&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;*italic*   _italic_
**bold**   __bold__
~~strike~~
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;italic&lt;/em&gt;  &lt;strong&gt;bold&lt;/strong&gt;  &lt;del&gt;strike&lt;/del&gt;&lt;/p&gt;
&lt;h4 id=&quot;2-3-lists&quot;&gt;2.3 Lists&lt;/h4&gt;
&lt;h5 id=&quot;unordered&quot;&gt;Unordered&lt;/h5&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;- Item A
  - Sub-item
* Asterisks work too
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Item A&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sub-item&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Asterisks work too&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id=&quot;ordered&quot;&gt;Ordered&lt;/h5&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;1. First
2. Second
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;First&lt;/li&gt;
&lt;li&gt;Second&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&quot;2-4-links&quot;&gt;2.4 Links&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;[visible text](https://example.com)
&amp;lt;https://example.com&amp;gt;   &amp;lt;!-- autolink --&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://example.com&quot;&gt;visible text&lt;/a&gt;&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://example.com&quot;&gt;https://example.com&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&quot;2-5-images&quot;&gt;2.5 Images&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;![Alt text](https://picsum.photos/200/300)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&quot;https://picsum.photos/200/300&quot; alt=&quot;Alt text&quot;&gt;&lt;/p&gt;
&lt;h4 id=&quot;2-6-code&quot;&gt;2.6 Code&lt;/h4&gt;
&lt;h5 id=&quot;inline&quot;&gt;Inline&lt;/h5&gt;
&lt;p&gt;&lt;code&gt;`code`&lt;/code&gt; → &lt;code&gt;code&lt;/code&gt;&lt;/p&gt;
&lt;h5 id=&quot;fenced-with-highlight-&quot;&gt;Fenced (with highlight)&lt;/h5&gt;
&lt;pre&gt;```js
function greet() {
  console.log(&quot;Hello!&quot;);
}
```&lt;/pre&gt;
&lt;h4 id=&quot;2-7-blockquotes&quot;&gt;2.7 Blockquotes&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-md&quot;&gt;&amp;gt; One level
&amp;gt;&amp;gt; Nested wisdom
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;One level&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Nested wisdom&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;h4 id=&quot;2-8-horizontal-rule-divider-&quot;&gt;2.8 Horizontal Rule (Divider)&lt;/h4&gt;
&lt;p&gt;(CoderLegion has issue display this)&lt;/p&gt;
&lt;h4 id=&quot;2-9-tables&quot;&gt;2.9 Tables&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;| Col A | Col B |
|-------|-------|
|  1    |  2    |
|  3    |  4    |
&lt;/code&gt;&lt;/pre&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Col A &lt;/th&gt;&lt;th&gt;Col B&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;1     &lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3     &lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h4 id=&quot;2-10-task-lists&quot;&gt;2.10 Task Lists&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;- [ ] Walk dog
- [x] Write guide
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;[ ] Walk dog&lt;/li&gt;
&lt;li&gt;[x] Write guide&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;2-11-emoji&quot;&gt;2.11 Emoji&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;:rocket: :sparkles: :100:
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; ✨ &lt;/p&gt;
&lt;h4 id=&quot;2-12-strikethrough&quot;&gt;2.12 Strikethrough&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;~~obsolete~~ now shiny
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;del&gt;obsolete&lt;/del&gt; now shiny&lt;/p&gt;
&lt;h4 id=&quot;2-13-inline-html-collapsible-&quot;&gt;2.13 Inline HTML (Collapsible)&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;details&amp;gt;
&amp;lt;summary&amp;gt;Click me&amp;lt;/summary&amp;gt;
Surprise! 
&amp;lt;/details&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;details&gt;
&lt;summary&gt;Click me&lt;/summary&gt;
Surprise! 
&lt;/details&gt;
&lt;h4 id=&quot;2-14-escaping-characters&quot;&gt;2.14 Escaping Characters&lt;/h4&gt;
&lt;p&gt;Need a literal &lt;code&gt;*&lt;/code&gt;? Use backslash:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;\*not italic\*
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;*not italic*&lt;/p&gt;
&lt;h4 id=&quot;2-15-footnotes&quot;&gt;2.15 Footnotes&lt;/h4&gt;
&lt;p&gt;(This feature is not supported on CoderLegion)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Markdown is handy.[^1]

[^1]: And footnotes are too!
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Markdown is handy.[^1]&lt;/p&gt;
&lt;p&gt;[^1]: And footnotes are too!&lt;/p&gt;
&lt;h3 id=&quot;that-s-a-wrap-&quot;&gt;That’s a Wrap!&lt;/h3&gt;
&lt;p&gt;You now wield the essentials of GitHub-flavoured Markdown. Keep this cheat-sheet nearby, and soon you’ll be dashing off beautifully formatted docs at lightspeed. Happy writing!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Explore More️&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To truly master Markdown, you should combine it with features from some foundational languages like HTML and CSS, and utilize additional extensions. See Charles' cool &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.totalimagine.com/Resources/CoolMarkdown.html&quot;&gt;demo&lt;/a&gt; for some additional features:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;HTML&lt;/li&gt;
&lt;li&gt;CSS&lt;/li&gt;
&lt;li&gt;LaTeX&lt;/li&gt;
&lt;li&gt;Mermaid&lt;/li&gt;
&lt;li&gt;JavaScript&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Notice those features may not be ubiquitously supported depending on the renderer.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adam Pritchard's &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/adam-p/markdown-here/wiki/markdown-cheatsheet&quot;&gt;Markdown Cheatsheet&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Charles Zhang's &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.totalimagine.com/Resources/CoolMarkdown.html&quot;&gt;Markdown is Cool&lt;/a&gt; demo.&lt;/li&gt;
&lt;li&gt;The super power markup converter tool &lt;a rel=&quot;nofollow&quot; href=&quot;https://pandoc.org/&quot;&gt;Pandoc&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>Web Dev</category>
<guid isPermaLink="true">https://coderlegion.com/3191/beginners-guide-to-github-flavoured-markdown</guid>
<pubDate>Mon, 02 Jun 2025 16:16:33 +0000</pubDate>
</item>
</channel>
</rss>