{"id":14871,"date":"2014-10-22T19:40:03","date_gmt":"2014-10-22T23:40:03","guid":{"rendered":"http:\/\/www.splendoroftruth.com\/curtjester\/?p=14871"},"modified":"2014-10-28T23:16:27","modified_gmt":"2014-10-29T03:16:27","slug":"an-introduction-to-markdown","status":"publish","type":"post","link":"http:\/\/www.splendoroftruth.com\/curtjester\/2014\/10\/an-introduction-to-markdown\/","title":{"rendered":"An Introduction to Markdown"},"content":{"rendered":"<p>If you blog, write notes, write articles or books, or any form of writing with formatted text you might want to consider using Markdown.<\/p>\n<p><a href=\"http:\/\/daringfireball.net\">John Gruber<\/a> who created Markdown a decade ago describes it this way:<\/p>\n<blockquote><p>Markdown is a plain text formatting syntax that allows you to write in an text editor and then have it converted to valid XHTML (or HTML).<\/p><\/blockquote>\n<p>What this means is that you can write formatted text using any text editor and then via a software tool have it converted to an HTML document. As the use of Markdown has grown there are tools for converting it to many other forms including PDF. One source document can be converted to multiple formats.<\/p>\n<p>I use Markdown as part of my daily workflow to write notes, help documents, blog posts, and pretty much any writing workflow. The main reason I like Markdown is that I can write even heavily formatted documents in plain text and still have the plain text version be very readable. Often I don\u2019t even convert these documents since I can easily read them as is. While I could certainly write them using HTML tags that really reduces the readability and it can quickly be difficult to read in plain text form. Once I have written a document in Markdown I can quickly convert it into the medium of choice. I use it to quickly create ebooks from Markdown documents along with converting online web pages into Markdown for reference later.<\/p>\n<p>To give you an example of how easy Markdown is to use, here are some examples.<\/p>\n<p>By using one or more Number signs # I can quickly write headers and use &gt; to create blockquotes.<\/p>\n<p>For example:<\/p>\n<dl>\n<dt>\n<pre><code class=\"(null)\"># Header 2\r\n\r\n&gt; This is an example of a blockquote<\/code><\/pre>\n<\/dt>\n<dd><\/dd>\n<\/dl>\n<h2 id=\"header2\">Header 2<\/h2>\n<blockquote><p>This is an example of a blockquote<\/p><\/blockquote>\n<p>Bold and italics can be accomplished using:<\/p>\n<pre><code class=\"(null)\">    This item is **bold** and this is using _italics_.<\/code><\/pre>\n<p>Becomes:<\/p>\n<p>This item is <strong>bold<\/strong> and this is using <em>italics<\/em><\/p>\n<p>Want to write lists?<\/p>\n<pre><code class=\"(null)\">+ This is item one\r\n    * Indented list item\r\n+ This is item two\r\n+ This is item three\r\n\r\n1. This is a numeric list item one\r\n2. This is a numeric list item two\r\n3. This is a numeric list item three<\/code><\/pre>\n<p>Becomes:<\/p>\n<ul>\n<li>This is item one\n<ul>\n<li>Indented list item<\/li>\n<\/ul>\n<\/li>\n<li>This is item two<\/li>\n<li>This is item three<\/li>\n<\/ul>\n<p>And:<\/p>\n<ol>\n<li>This is a numeric list item one<\/li>\n<li>This is a numeric list item two\n<p>a. Another<\/p>\n<p>b. Another<\/li>\n<li>This is a numeric list item three<\/li>\n<\/ol>\n<p>But what I really love about Markdown is how I can insert links.<\/p>\n<p>Now it is easy to do inline links to create a link with the text you give it or a naked link like using angle brackets.<\/p>\n<pre><code class=\"(null)\">[Some Site](http:\/\/www.ewtn.com)\r\n\r\n&lt;http:\/\/www.ewtn.com&gt;<\/code><\/pre>\n<p>Becomes:<\/p>\n<p><a href=\"http:\/\/www.ewtn.com\">Some Site<\/a><\/p>\n<p><a href=\"http:\/\/www.ewtn.com\">http:\/\/www.ewtn.com<\/a><\/p>\n<p>This is fairly readable, much better than <strong>&lt;a href=\u201chttp:\/\/www.ewtn\u201d&gt;Some Site&lt;\/a&gt;<\/strong>, still I find reference links even better.<\/p>\n<p>With a reference link I can name a link and then put the actual URLs at the end of the document. This makes reading the plain text version much easier and you have alllk your links in one place and you don\u2019t have to repeat them when using the same reference.<\/p>\n<pre><code class=\"(null)\">Here is a link to [Some site][ewtn] along with a link to [Catholic Answers][catholic]. Plus here is a link to [my blog][jester] and another link to to [Catholic Answers][catholic].\r\n\r\n[ewtn]: http:\/\/www.ewtn.com\r\n[catholic]: http:\/\/www.catholic.com\r\n[jester]: http:\/\/www.splendoroftruth.com\/curtjester<\/code><\/pre>\n<p>Becomes:<\/p>\n<p>Here is a link to <a href=\"http:\/\/www.ewtn.com\">Some site<\/a> along with a link to <a href=\"http:\/\/www.catholic.com\">Catholic Answers<\/a>. Plus here is a link to <a href=\"http:\/\/www.splendoroftruth.com\/curtjester\">my blog<\/a> and another link to to <a href=\"http:\/\/www.catholic.com\">Catholic Answers<\/a>.<\/p>\n<p>Reference links make my life so much easier. When I post the Weekly Francis I write it in Markdown and I have all the URLs listed at the bottom of my document for both readability and be be able so easily spot malformed URLs.<\/p>\n<p>Images can also be inserted via inline or reference links.<\/p>\n<pre><code class=\"(null)\">![](http:\/\/www.splendoroftruth.com\/curtjester\/wp-content\/uploads\/2014\/04\/vatican_top_button.jpg)\r\n\r\nand\r\n\r\n![][uparrow]\r\n\r\n[uparrow]: http:\/\/www.splendoroftruth.com\/curtjester\/wp-content\/uploads\/2014\/04\/vatican_top_button.jpg<\/code><\/pre>\n<p>Becomes:<\/p>\n<figure><img decoding=\"async\" src=\"http:\/\/www.splendoroftruth.com\/curtjester\/wp-content\/uploads\/2014\/04\/vatican_top_button.jpg\" alt=\"\" \/><\/figure>\n<p>and<\/p>\n<figure><img decoding=\"async\" id=\"uparrow\" src=\"http:\/\/www.splendoroftruth.com\/curtjester\/wp-content\/uploads\/2014\/04\/vatican_top_button.jpg\" alt=\"\" \/><\/figure>\n<p>Now this post is not intended to be a full Markdown tutorial. Just one to show you the simplicity and power of Markdown and why it might be something you could use.<\/p>\n<p>Since Markdown was originally released a decade ago the syntax has remained stable. Still there are other flavors that have added onto the original Markdown standard such as <a href=\"http:\/\/fletcherpenney.net\/multimarkdown\/\">MultiMarkdown<\/a> and a new standardization format called <a href=\"http:\/\/commonmark.org\">CommonMark<\/a>. While all these variants support the original syntax they also add support for other features such as tables and more advanced formatting features. You can also use straight HTML format in Markdown documents along with Markdown syntax.<\/p>\n<p>So once you have written a document using Markdown syntax you might wonder just exactly how you convert it to XHTML or other format. There are a growing number of editors that allow you to write in Markdown and preview it live and then convert it. On Mac OSX I happen to use <a href=\"http:\/\/marked2app.com\">Marked 2<\/a> app because it is super-powerful allowing me to use any text editor I want and get a live preview of the document along with ability to convert into multiple formats. If you come to like Markdown and have a Mac <a href=\"http:\/\/marked2app.com\">Marked 2<\/a> at $13.99 on the <a href=\"https:\/\/itunes.apple.com\/us\/app\/marked-2\/id890031187?ls=1&amp;mt=12\">Mac App Store<\/a> is worth every penny.<\/p>\n<p>While you can use any text editor to create these documents it can be useful to use an editor specifically created using Markdown more like a traditional word processor. Here are some suggestions. Not an exhaustive list by any means as this is a growing field.<\/p>\n<ul>\n<li>OSX\n<ul>\n<li><a href=\"http:\/\/macdown.uranusjr.com\">MacDown<\/a> &#8211; A free an open source version for the Mac.<\/li>\n<li><a href=\"http:\/\/multimarkdown.com\">MultiMarkdown Composer<\/a> A paid app, bu they have a demo version.<\/li>\n<li><a href=\"http:\/\/marked2app.com\">Marked 2<\/a> which I previously mentioned.<\/li>\n<li><a href=\"http:\/\/ulyssesapp.com\">Ulysses III<\/a> a writer\u2019s tool for long-form documents including novels which can be used with Markdown and other markup languages.<\/li>\n<\/ul>\n<\/li>\n<li>Windows\n<ul>\n<li><a href=\"http:\/\/blog.pengyifan.com\/best-markdown-editors-for-windows-linux-and-the-web\/\">MarkdownPad<\/a>. This is the only one I have used on the Windows side and it has a free and a pro version.<\/li>\n<\/ul>\n<\/li>\n<li>Linux\n<ul>\n<li>No experience regarding Markdown editors on Linux, but they are available. If you have suggestions let me know.<\/li>\n<\/ul>\n<\/li>\n<li>OSX and Windows\n<ul>\n<li><a href=\"http:\/\/www.literatureandlatte.com\/scrivener.php\">Scriviner 2<\/a> Another professional app for writers that is very powerful and can use Markdown syntax. Lots of management features if you are writing anything from a research paper to the <em>Great American Novel<\/em>.<\/li>\n<li><a href=\"https:\/\/h3rald.com\/hastyscribe\/\">HastyScribe<\/a> A command line program to convert Markdown Documents to self-contained HTML pages.<\/li>\n<li><a href=\"http:\/\/www.sublimetext.com\">Sublime Text 3<\/a>: Powerful text editor that has packages supporting Markdown. $70.<\/li>\n<li><a href=\"https:\/\/atom.io\">Atom.IO<\/a>: A free open source text editor with both support for Markdown formatting and previewing. Also very powerful and similar to <a href=\"http:\/\/www.sublimetext.com\">Sublime Text 3<\/a> and created by <a href=\"https:\/\/github.com\">GitHub<\/a>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>In addition many websites already allow the use of Markdown such as <a href=\"http:\/\/www.reddit.com\/\">reddit<\/a>, <a href=\"http:\/\/www.wordpress.com\">wordpress.com<\/a>, and <a href=\"http:\/\/www.squarespace.com\/\">Squarespace<\/a> along with countless sites used by programmers such as <a href=\"http:\/\/stackoverflow.com\">StackOverflow<\/a> and <a href=\"https:\/\/github.com\">GitHub<\/a>.<\/p>\n<p>The amazing thing about Markdown is that I could write this post in plain text and have no problem viewing it as plain text. I will use <a href=\"http:\/\/marked2app.com\">Marked 2<\/a> to create the HTML which I will paste into my WordPress blog. I keep this original post in a plain text document which I store in Dropbox. I wrote this in <a href=\"http:\/\/www.sublimetext.com\">Sublime Text 3<\/a> which is my text editor of choice.<\/p>\n<h3 id=\"markdownreferences\">Markdown References<\/h3>\n<p><a href=\"http:\/\/daringfireball.net\/projects\/markdown\/basics\">Original Markdown<\/a><\/p>\n<p><a href=\"http:\/\/fletcherpenney.net\/multimarkdown\/\">MultiMarkdown<\/a><\/p>\n<p><a href=\"http:\/\/commonmark.org\">CommonMark<\/a><\/p>\n<p><a href=\"http:\/\/markdowntutorial.com\">Markdown Tutorial <\/a><\/p>\n<p><a href=\"http:\/\/heckyesmarkdown.com\/\">Heck Yes Markdown<\/a> Converts a web site from HTML to Markdown. Can also format document using <a href=\"https:\/\/www.readability.com\/\">Readabililty<\/a><\/p>\n<p><a href=\"http:\/\/dynalon.github.io\/mdwiki\/#!index.md\">MDwiki<\/a>: Create a Wiki site using Markdown using a single document to launch it.<\/p>\n<p><a href=\"http:\/\/jekyllrb.com\">Jekyll<\/a>: A framework for creating websites and blogs using Markdown and generating a static website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you blog, write notes, write articles or books, or any form of writing with formatted text you might want to consider using Markdown. John Gruber who created Markdown a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-14871","post","type-post","status-publish","format-standard","hentry","category-software"],"_links":{"self":[{"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts\/14871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/comments?post=14871"}],"version-history":[{"count":2,"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts\/14871\/revisions"}],"predecessor-version":[{"id":14875,"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/posts\/14871\/revisions\/14875"}],"wp:attachment":[{"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/media?parent=14871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/categories?post=14871"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.splendoroftruth.com\/curtjester\/wp-json\/wp\/v2\/tags?post=14871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}