{"id":7837,"date":"2014-12-23T12:12:48","date_gmt":"2014-12-23T19:12:48","guid":{"rendered":"http:\/\/macblaze.ca\/?p=7837"},"modified":"2014-12-23T12:12:48","modified_gmt":"2014-12-23T19:12:48","slug":"markdown","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=7837","title":{"rendered":"Markdown"},"content":{"rendered":"<p>Markdown is a text based language basically designed to allow you to do simple code while working in a text editor. The curious can learn more here: <a href=\"http:\/\/daringfireball.net\/projects\/markdown\/\">daringfireball.net\/projects\/markdown\/<\/a>. I bring this up because as it is approaching the end of the year, I have been tidying up my annual book list (<a href=\"http:\/\/macblaze.ca\/?p=5733\">2013<\/a>, <a href=\"http:\/\/macblaze.ca\/?p=2941\">2012<\/a>) to get ready to post in the new year. In the past I have prepared the formatting of this list\u00a0a number of ways from using search and replace to typing it directly into WordPress.\u00a0In the end, I have found that maintaining a text file using IA Writer which syncs between all my mobile devices and that has the prepared html code has been easiest. I use this:<\/p>\n<p>&lt;i>&lt;strong>title&lt;\/strong>&lt;\/i> author (date)&lt;br><br \/>\n&lt;b>series&lt;\/b> Book # &#8211; ebook; reread<\/p>\n<p>And it shows\u00a0this:<br \/>\n<i><strong>title<\/strong><\/i> author (date)<br \/>\n<b>series<\/b> Book # &#8211; ebook; reread<\/p>\n<p>I simply copy and paste the code, fill in the proper info and am good to go. The only downside is occasionally I forget to copy the code and then have to recreate the code template. But that&#8217;s not too much effort so I haven&#8217;t worried about it. But a little reading about Markdown is convincing me that next year I should be able to simplify the procedure. The theory is if I type:<\/p>\n<p><code>_**Cally's War**_ John Ringo &amp;amp; Julie Cochrane (2004)<\/code><br \/>\n<code>**Cally's War** Book 1 - ebook; reread<\/code><\/p>\n<p>It should come out as:<\/p>\n<p><em><strong>Cally&#8217;s War<\/strong><\/em> John Ringo &amp; Julie Cochrane (2004)<br \/>\n<strong>Cally&#8217;s War<\/strong> Book 1 &#8211; ebook; reread<\/p>\n<p>And look at that, it totally does&#8230; You can agree that it&#8217;s a whole hell of a lot less typing to format the entries using Markdown than traditional html. I just have to learn a little new syntax.<\/p>\n<p>To enable Markdown for use on my WordPress blog I had to activate the default JetPack plugin and sign in to WordPress.com. After that simply activating the Markdown portion converts the code on the fly without destroying the original text-based code. That should make it easier to write all sorts of entries in my text editors.<\/p>\n<h3>Markdown Syntax<\/h3>\n<p>Here are a few more \u00a0examples of Markdown syntax:<\/p>\n<pre><code>This is an H1\n=============\n<\/code><\/pre>\n<p>This is an H1<\/p>\n<p>===<\/p>\n<pre><code>This is an H2\n-------------\n<\/code><\/pre>\n<h2>This is an H2<\/h2>\n<p>or<\/p>\n<p><code># This is an H1<\/code><br \/>\n<code>## This is an H2<\/code><br \/>\n<code>#### This is an H4<\/code><\/p>\n<p>etc.<\/p>\n<h1>This is an H1<\/h1>\n<h2>This is an H2<\/h2>\n<h4>This is an H4<\/h4>\n<p>Pretty simple stuff. The rest of this post is an abridged cut-and-paste from the <a href=\"http:\/\/daringfireball.net\/projects\/markdown\/syntax\">Markdown Syntax page<\/a>.<\/p>\n<p>Markdown uses <code>&gt;<\/code> characters for blockquoting. If you&#8217;re<br \/>\nfamiliar with quoting passages of text in an email message, then you<br \/>\nknow how to create a blockquote in Markdown. It looks best if you hard<br \/>\nwrap the text and put a <code>&gt;<\/code> before every line:<\/p>\n<p><code>&gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,<\/code><br \/>\n<code>&gt; consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.<\/code><br \/>\n<code>&gt; Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.<\/code><br \/>\n<code>&gt;<\/code><br \/>\n<code>&gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse<\/code><br \/>\n<code>&gt; id sem consectetuer libero luctus adipiscing.<\/code><\/p>\n<blockquote><p>\n  This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,<br \/>\n  consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.<br \/>\n  Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.<\/p>\n<p>  Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse<br \/>\n  id sem consectetuer libero luctus adipiscing.\n<\/p><\/blockquote>\n<p>Markdown allows you to be lazy and only put the <code>&gt;<\/code> before the first<br \/>\nline of a hard-wrapped paragraph:<\/p>\n<blockquote><p>\n  This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,<br \/>\n  consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.<br \/>\n  Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.<\/p>\n<p>  Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse<br \/>\n  id sem consectetuer libero luctus adipiscing.\n<\/p><\/blockquote>\n<p>Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by<br \/>\nadding additional levels of <code>&gt;<\/code>:<\/p>\n<p><code>&gt; This is the first level of quoting.<\/code><br \/>\n<code>&gt;<\/code><br \/>\n<code>&gt; &gt; This is nested blockquote.<\/code><br \/>\n<code>&gt;<\/code><br \/>\n<code>&gt; Back to the first level.<\/code><\/p>\n<blockquote><p>\n  This is the first level of quoting.<\/p>\n<blockquote><p>\n    This is nested blockquote.\n  <\/p><\/blockquote>\n<p>  Back to the first level.\n<\/p><\/blockquote>\n<p>Markdown supports ordered (numbered) and unordered (bulleted) lists.<\/p>\n<p>Unordered lists use asterisks, pluses, and hyphens &#8212; interchangably<br \/>\n&#8212; as list markers:<\/p>\n<p><code>* Red<\/code><br \/>\n<code>* Green<\/code><br \/>\n<code>* Blue<\/code><\/p>\n<p>or<\/p>\n<p><code>+ Red<\/code><br \/>\n<code>+ Green<\/code><br \/>\n<code>+ Blue<\/code><\/p>\n<p>is<\/p>\n<ul>\n<li>Red<\/li>\n<li>Blue<\/li>\n<li>Green<\/li>\n<\/ul>\n<p>Ordered lists use numbers followed by periods:<\/p>\n<p><code>1. Bird<\/code><br \/>\n<code>2. McHale<\/code><br \/>\n<code>3. Parish<\/code><\/p>\n<ol>\n<li>Me<\/li>\n<li>You<\/li>\n<li>Bobby McGee<\/li>\n<\/ol>\n<p>The one other thing of note is the use of escape characters. A &#96; before and after a line allows the code to be displayed without applying the formatting or an indent of 4 spaces will show the code in an offset block:<\/p>\n<pre><code>* Bird\n* McHale\n* Parish\n<\/code><\/pre>\n<p>One has to do that in Text view and then post or else WordPress will helpfully delete the blank spaces, so its easiest to use the &#96;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Markdown is a text based language basically designed to allow you to do simple code while working in a text editor. The curious can learn more here: daringfireball.net\/projects\/markdown\/. I bring this up because as it is approaching the end of the year, I have been tidying up my annual book list (2013, 2012) to get [&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\/7837"}],"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=7837"}],"version-history":[{"count":0,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/7837\/revisions"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}