{"id":7856,"date":"2014-12-27T12:23:55","date_gmt":"2014-12-27T19:23:55","guid":{"rendered":"http:\/\/macblaze.ca\/?p=7856"},"modified":"2022-01-25T09:35:54","modified_gmt":"2022-01-25T16:35:54","slug":"markdown-syntax-for-dummies","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=7856","title":{"rendered":"Markdown Syntax for Dummies"},"content":{"rendered":"<p>Further to my <a title=\"Markdown\" href=\"http:\/\/macblaze.ca\/?p=7837\">post of a few days ago<\/a>, I have compiled an easier-to-read list of Markdown&#8217;s syntax for future reference.<\/p>\n<h4>Basic Character Codes<\/h4>\n<p><code>**strong**<\/code> or <code>__bold__<\/code><br \/>\n<strong>strong<\/strong> or <strong>bold<\/strong><\/p>\n<p><code>*emphasis* or<\/code>_italics_`<br \/>\n<em>emphasis<\/em> or <em>italics<\/em><\/p>\n<p>two spaces followed by a line break<br \/>\n<code><\/code><\/p>\n<h4>Head Levels<\/h4>\n<p>Pound symbols (one for each level) followed by a space<br \/>\n<code>## H2 Level Head<\/code><\/p>\n<h2>H2 Level Head<\/h2>\n<h4>Block Quotes<\/h4>\n<p><code>&amp;gt; Block Quote text<\/code><\/p>\n<blockquote><p>\n  Block Quote text\n<\/p><\/blockquote>\n<h4>Lists<\/h4>\n<p>Unordered lists use asterisks *, pluses +, and hyphens \u2014, followed by a space, interchangeably as list markers:<br \/>\n* bob<br \/>\n* frank<br \/>\n* sue<\/p>\n<p>Ordered Lists have any numeral (e.g. 1) followed by a period and a space<br \/>\n<code>1. abc<\/code><br \/>\n<code>1. bcd<\/code><br \/>\n<code>4. cde<\/code><br \/>\n1. abc<br \/>\n1. bcd<br \/>\n4. cde<\/p>\n<h4>Code<\/h4>\n<p>INline code can be displayed by using backticks &#96; at the start and end&#96;<br \/>\n<code>sudo write code here<\/code><\/p>\n<p>Code blocks can have 3 backticks &#96;&#96;&#96; at the start and finish:<br \/>\n<code>line one code<br \/>\nline two code<br \/>\nline three code<\/code><\/p>\n<h4>Horizontal Rule<\/h4>\n<p>Three or more hyphens, asterisks, or underscores on a line by themselves<br \/>\n<code>***<\/code><\/p>\n<hr \/>\n<h4>Hyperlinks<\/h4>\n<p>This is <code>[an example](http:\/\/example.com\/)<\/code> inline link.<br \/>\nThis is <a href=\"http:\/\/example.com\/\">an example<\/a><br \/>\nor<br \/>\nDefine <code>[ID1]: http:\/\/example.com\/` as a link anywhere in the body and call it using<\/code><a href=\"http:\/\/example.com\/\">ID1<\/a>`<br \/>\n<a href=\"http:\/\/example.com\/\">ID1<\/a><\/p>\n<h4>Images<\/h4>\n<p><code>![Alt text](http:\/\/macblaze.ca\/wp-content\/uploads\/2014\/12\/1-150x82.jpg)<\/code><br \/>\n<img src=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2014\/12\/1-150x82.jpg\" alt=\"Alt text\" \/><\/p>\n<p>Images can also be defined. Define <code>[ID2]: http:\/\/macblaze.ca\/wp-content\/uploads\/2014\/12\/1-150x82.jpg`<br \/>\nand call it using<\/code><a href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2014\/12\/1-150x82.jpg\">ID2<\/a>`<br \/>\n<a href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2014\/12\/1-150x82.jpg\">ID2<\/a><\/p>\n<h4>Backslash Escapes<\/h4>\n<p>Markdown allows you to use backslash escapes to generate literal characters that have special meaning in Markdown\u2019s formatting syntax.<br \/>\n<code>\\*literal asterisks\\*<\/code><br \/>\n&#42;literal asterisks&#42;<\/p>\n<p>\\ backslash<br \/>\n` backtick<br \/>\n* asterisk<br \/>\n_ underscore<br \/>\n{} curly braces<br \/>\n[] square brackets<br \/>\n() parentheses<br \/>\n# hash mark<br \/>\n&#43; plus sign<br \/>\n&#45; minus sign (hyphen)<br \/>\n&#46; dot<br \/>\n&#33; exclamation mark<\/p>\n<h4>Tables (Markdown Extra)<\/h4>\n<p>(doesn&#8217;t seem to be working on WP&#8217;s Markdown interpreter)<\/p>\n<pre><code>|Trees|Cats!|Beer?|\n|---:|:---|:---:|\n|oak|ginger|ale|\nbeechnut|calico-cross|pilsner\nwalnut|manx|stout\n<\/code><\/pre>\n<p>| Trees|Cats!|Beer?|<br \/>\n| &#8212;:|:&#8212;|:&#8212;:|<br \/>\n| oak|ginger|ale|<br \/>\n| beechnut|calico-cross|pilsner<br \/>\nwalnut|manx|stout<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Further to my post of a few days ago, I have compiled an easier-to-read list of Markdown&#8217;s syntax for future reference. Basic Character Codes **strong** or __bold__ strong or bold *emphasis* or_italics_` emphasis or italics two spaces followed by a line break Head Levels Pound symbols (one for each level) followed by a space ## [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/7856"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7856"}],"version-history":[{"count":4,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/7856\/revisions"}],"predecessor-version":[{"id":14956,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/7856\/revisions\/14956"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}