← Back to Archives

PHP Markdown 1.0.2b2

system

Well, I've just made the switch from PHP Markdown 1.0.1 to PHP Markdown 1.0.2b2. I also solved a small problem with using PHP Markdown with b2evolution (see below). Now, I can write links like this:

This is [a link], dork!

[a link]:http://yo.mama.is.ugly/

Which is slightly better, I believe, than:

This is [a link][], dork!

[a link]:http://yo.mama.is.ugly/

Another win for easily-readable and parseable text.

Using Markdown's Automatic Link Syntax with PHP Markdown and b2evolution: Unfortunately, I noticed the following behavior with automatic links using my PHP Markdown plugin with b2evolution. It turns automatic links in Markdown form:

http://example.com/

into this:

<http ://example.com/>

This means that I'm still not supporting the <http://example.com> format from the Markdown syntax in my PHP Markdown plugin for b2evolution. This is because b2evolution's balanceTags function is trying to balance the <http://...> tag! How do you turn this off? Well, open conf/_formatting.php in your b2evolution blog's directory tree and change the line that starts:

$use_balanceTags = 1;

to

$use_balanceTags = 0;

Now, <http://example.com produces this:

http://example.com/

http://example.com/