How to color code headings in TextMate using Markdown
Preferences > Fonts & Colors
Add a new element entry like so, using the scope selector markup.heading (this doesn’t seem to effect H tags in HTML):

Use whatever foreground and background colors you want.
Project-Specific Self-Closing Tags in TextMate
If you want to switch to using self-closing tags like <img /> and <br /> in certain projects, change the shell variable TM_XHTML for that project to ” /“.
Click here:

Enter this:

The default behavior for TextMate is to use HTML 4, so you don’t have to do anything extra for those projects.
OLs in IE
If you set an OL LI to have height: 1% (to trigger has-layout) in IE, the number won’t increment. Freaky.
Using Markdown in Rails apps with BlueCloth
XHTML vs HTML
If XHTML served as text is really just invalid HTML that renders predictably, then why does a document with a HTML 4.01 strict doctype still validate with XHTML type self-closing tags (<img src=”#” />)?
Update (Oct 25, 2006): I like this!
Getting Markdown to work with Django
In your view template put:
{% load markup %}
In your settings.py in the INSTALLED_APPS section, put:
'django.contrib.markup',
Install the Markdown library:
Install on OS X:
Download markdown.py and setup.py and run:
python setup.py install
This is what happened on my system:
running install
running build
running build_py
creating build
creating build/lib
copying markdown.py -> build/lib
running install_lib
copying build/lib/markdown.py -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/markdown.py to markdown.pyc
I wonder if that was the wrong way to do that. It looks like it modified my system version of Python, which means if the system updates it, it will be overwritten, right?
Install on DreamHost
Basically, you just want to put the markdown.py file anywhere in your Python path. The simplest way is to just drop markdown.py in your django_projects directory. A slighty more complicated, but cleaner way (and actually the way I did it) is to create another directory for Python modules like this. I created a directory at the root of my Dreamhost account called “pylib”. You then need to add this directory to your python path by adjusting .bashrc and django.fcgi accordingly. If that makes sense, go for it. If not, just drop markdown.py in your django_projects — that’ll work fine.