I’ve created a couple of small patches to improve how WordPress works with Markdown:
-
The
balanceTags
function was preventing the Markdown autotags feature from working by thinking <http://server/page
> is actually some sorf of anhttp
tag. I didn’t want to completely disablebalanceTags
, so I added code to pass throughhttp
,https
andftp
“tags” untouched. -
The
wptexturize
function 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.php
to install itself at priority 8.
I’m beginning to think I should import WordPress to my local CVS repository.