I’ve created a couple of small patches to improve how WordPress works with Markdown:
-
The
balanceTagsfunction was preventing the Markdown autotags feature from working by thinking <http://server/page> is actually some sorf of anhttptag. I didn’t want to completely disablebalanceTags, so I added code to pass throughhttp,httpsandftp“tags” untouched. -
The
wptexturizefunction must be called after Markdown to avoid unwanted “texturizing” of preformatted and code blocks. The fix was easy once I learned that filters have priorities. The default priority is 10, so I modifiedmarkdown.phpto install itself at priority 8.
I’m beginning to think I should import WordPress to my local CVS repository.