Update: Website now using markdown

I just added markdown support to the blog admin panel. It was as simple as:

  • Downloading and adding the python module to my application directory (well, I technically created a directory third_party to hold all third party code).
  • Importing the module into my main app. I decided to take it one step further and create a custom jinja2 filter for this, which was also very simple:

  • Created a wrapper filter method (markdownfilter) that takes a single parameter and returns a result.

  • Registered this method as a filter on my jinja environment variable. Now using markdown in a jinja2 template is as easy as: {{content|markdown}}

This syntax passes content as the first parameter to my markdownfilter method and returns the resulting html. Awesome!

Hi there!

I'm a Frontend web developer on YouTube's Webmaster Team. I like building awesome and beautiful websites, like this one and this one.

I graduated from UCLA (Go Bruins!) with a degree in Political Science.

In my free time, I'm a Group fitness instructor at 24 Hour Fitness in the bay area.

You can find me @djreed or +dannyreed.

Danny Reed