MarkDown in WordPress: How to implement Markdown in your WordPress blog
Filed in Tutorials, Blogging by TheSage at 12:34 pm No Comments »Markdown is an easy to use syntax that allows text conversion to XHTML. The wonderful thing about Markdown is that it allows your to compose your prose in an easy to write and easy to read text format. The goal of John Gruber’s Markdown program is to make text as readable as possible. Ultimately, markdown is a software tool, written in Perl, that converts the plain text formatting to valid HTML.
In order to utilize markdown formatted text in your blog there are several steps that must be taken (for the sake of this article all steps will be discussed with reference to WordPress although markdown can be used with a variety of blogging platforms).
- Download and install PHP Markdown 1.01f from by Michel Fortin.
- This involves unzipping the markdown.php file and uploading it to your WP Plugins Directory (home/wp-content/plugins) and activating it via the WP control panel.
- You will have to disable the visual editor in the user preference pane in Wordpress.
- Compose your prose utilizing the Markdown Syntax.
- The best way to familiarize yourself with the ins and outs of markdown are to look at someone else’s text. There are excellent examples on John Gruber’s website Daring Fireball. You may view this posting in markdown here.
TextMate offers great support for Markdown and blog publishing via its blogging bundle. You can write your prose and preview them using the preview engine built into TextMate. There are some very handy keyboard shortcuts for adding syntax elements. For example highlighting text and pressing ⌃⇧L will convert the text to a link to whatever is on the clipboard. If nothing is on the clipboard a dummy link is inserted. If you have configured a blog in TextMate you can drag and drop an image into a blog.markdown document and the image will be uploaded to the server and the markdown formatted link to the image will be added to your document (this is extremely convenient).
Of course there is another way to implement markdown in your work flow. You may opt to write your prose in Markdown and use humaneText.service to convert it to XHTML and then upload to your server. This prevents you from having to install PHP Markdown 1.0f on your blog. Using this method you can benefit from text format of markdown and then convert it to valid XHTML prior to posting.
The Sage encourages everyone to enjoy in the wonderful world of John Gruber’s Markdown. You will find that it is extremely convenient and allows your to focus on the thing that is most important. Your Writing
Technorati Tags: Markdown, Wordpress, Tutorials, HumaneText.service, TextMate




