<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: markdown</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/markdown/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Reasons For Migrating from Wordpress to Jekyll</title>
      <link>https://chrisjrob.com/2015/11/15/reasons-for-migrating-from-wordpress-to-jekyll/</link>
      <pubDate>Sun, 15 Nov 2015 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/11/15/reasons-for-migrating-from-wordpress-to-jekyll</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/jekyll.png" align="right" alt="Featured Image">
         
         <p>Following my <a href="/2015/11/12/migration-wordpress-to-jekyll/">recent announcement</a>, I thought I would give some of my reasons for the move and some early impressions of using Jekyll.</p>

<h2 id="what-is-jekyll">What is Jekyll?</h2>

<p><a href="http://jekyllrb.com">Jekyll</a> is a <a href="http://daringfireball.net/projects/markdown/">Markdown</a> based website and blogging platform, written in Ruby. 
The principle is simple - you write markown text files and they are automatically converted to static HTML webpages.</p>

<!--more-->

<h2 id="what-is-markdown">What is Markdown?</h2>

<p>I am assuming that most of my audience have at least a passing knowledge of <a href="http://daringfireball.net/projects/markdown/">Markdown</a>, but basically it is a very clean virtually syntax-free way of writing text files, so that they can be easily converted into different formats. 
The key to markdown is the conversion utility and I currently use <a href="http://pandoc.org/">Pandoc</a>. 
I write the file once, and then I can convert into whatever format I want it in:</p>

<ul>
  <li><strong>PDF:</strong> <code class="language-plaintext highlighter-rouge">pandoc -o sample.pdf sample.markdown</code></li>
  <li><strong>Word:</strong> <code class="language-plaintext highlighter-rouge">pandoc -o sample.docx sample.markdown</code></li>
  <li><strong>HTML:</strong> <code class="language-plaintext highlighter-rouge">pandoc -o sample.html sample.markdown</code></li>
</ul>

<p>I would imagine most people start using Markdown so that can continue to use the favourite text editor - Vim or Emacs. 
At work I have found myself using it in preference to a word-processor, I have written a simple <code class="language-plaintext highlighter-rouge">md2pdf</code> perl script, so that in vim I can simply type <code class="language-plaintext highlighter-rouge">:md2pdf %</code> to have my document saved as a PDF. 
And the PDFs that Pandoc produces are beautiful and headings and sub-headings are automatically converted into PDF Bookmarks, giving your documents an effortless professionalism.</p>

<p>For complicated documents I sometimes start in Markdown and then move to LaTeX, but increasingly I am finding myself able to do virtually everything in Markdown, including simple images and hyperlinks. 
But you also have the option of extending plain markdown with HTML tags.</p>

<p>So in simplest terms Jekyll is just an automated way of creating Markdown files and converting them to HTML.</p>

<h2 id="but-why-change-from-wordpress">But why change from Wordpress?</h2>

<p><a href="http://wordpress.com">Wordpress</a> has been great for me, it’s relatively simple, has great statistical tools, a build in commenting system and much more besides. 
So why leave all that behind for something which is fundamentally so basic?</p>

<h3 id="benefits-of-jekyll">Benefits of Jekyll</h3>

<ol>
  <li><strong>Text Editor:</strong> Once again the desire to use <a href="http://www.vim.org">Vim</a> was probably the key motivation.</li>
  <li><strong>Github Pages:</strong> The fact that Jekyll could be used <a href="https://help.github.com/articles/using-jekyll-with-pages/">with the free Github Pages</a> was another.</li>
  <li><strong>Command Line:</strong> The ability to use grep, sed and perl and all the other command line goodies makes for an incredibly versatile system.</li>
  <li><strong>Version Control:</strong> To have the whole site under version control.</li>
</ol>

<p>I cannot tell you how wonderful it is to <code class="language-plaintext highlighter-rouge">grep -l searchtext *.markdown | vim -</code> and be able to edit each matching file in Vim.</p>

<h3 id="bootpolish-blog">Bootpolish Blog</h3>

<p>There was another reason too, which was that I still had an old blog at bootpolish.net, which I wanted to close down. 
I could have merged it into my Wordpress blog, but I thought it would be easier to transfer it to Jekyll. 
To be honest I can’t say that it was particularly easy, but thankfully it is now done.</p>

<h2 id="the-migration-process">The Migration Process</h2>

<p>I followed the <a href="https://help.github.com/articles/using-jekyll-with-pages/">GitHub Instructions for Jekyll</a>.
I used rsync to copy the underlying text files from Bootpolish.net into the _drafts folder, before using bash for loops to auto-process each into a Jekyll markdown post. 
I used the <a href="http://import.jekyllrb.com/docs/wordpressdotcom/">Wordpress Importer</a> to transfer my Wordpress blog.
The importer did not work particularly well, so I ended up editing each file in turn.</p>

<p>I found there was some customisation required:</p>

<ol>
  <li><strong>Categories:</strong> By default Jekyll has no Category pages, for example: http://chrisjrob.com/category/technology/</li>
  <li><strong>Tags:</strong> By default Jekyll has no Tag pages, for example: http://chrisjrob.com/tag/3dmodel/</li>
  <li><strong>Wordpress RSS:</strong> I wanted to maintain the existing feed locations, which required creation of various additional feeds.</li>
  <li><strong>Tag Cloud:</strong> By default Jekyll has no tag cloud functionality, which I believe is crucial to a blog.</li>
  <li><strong>Site Search:</strong> By default Jekyll has no site search. There are plug-ins, but these are not compatible with GitHub pages. For now I have used Google Custom Search, but it has not yet indexed the entire site.</li>
</ol>

<p>I have written <a href="https://github.com/chrisjrob/chrisjrob.github.io/blob/master/tagger">a script to build all the tags and categories</a>, which is working well. 
I would like to integrate this into the git commit command somehow, so that I don’t forget to run it!</p>

<p>Any new categories would require additional RSS feed files creating, by simply copying the feed template into the relevant category/feed folder.</p>

<h2 id="conclusions">Conclusions</h2>

<p>This has been much more work than I would have liked. 
That said, I now have my Markdown files in a format under my control. 
I can move those files to any Jekyll provider, or indeed to any web provider and have them hosted.</p>

<p>In short, I am hoping that this is the last time I will move platforms!</p>

<p>Lastly, if you’re unfamiliar with Markdown, you can <a href="https://raw.githubusercontent.com/chrisjrob/chrisjrob.github.io/master/_posts/2015-11-15-reasons-for-migrating-from-wordpress-to-jekyll.md">view the Markdown version of this page</a>.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Dillinger - The HTML5 Markdown Editor</title>
      <link>https://chrisjrob.com/2014/08/09/dillinger/</link>
      <pubDate>Sat, 09 Aug 2014 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2014/08/09/dillinger</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/dillinger.png" align="right" alt="Featured Image">
         
         <p>I thought I loved
<a href="http://en.wikipedia.org/wiki/Markdown" title="Read about markdown on Wikipedia">markdown</a>.
I thought <a href="http://dillinger.io">Dillinger</a> (an HTML5 Markdown editor)
looked remarkable. So I downloaded and installed it on an Ubuntu 14.04.1
LTS server:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ git clone https://github.com/joemccann/dillinger.git dillinger
$ cd dillinger
$ npm i -d
$ mkdir -p public/files/{md,html,pdf}
$ sudo apt-get install nodejs
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
$ npm install express
$ npm install phantomjs
$ cd dillinger
$ node app
</code></pre></div></div>

<p>It looks beautiful and works perfectly and even includes the ability to
export to PDF. But it seems that, for me at least, markdown without
<a href="http://www.vim.org/">Vim</a> just isn’t the same.</p>

<p>Shame that.</p>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
