PHP Markdown 1.0.1n & Extra 1.2.4

Michel Fortin michel.fortin at michelf.com
Sat Oct 10 13:23:49 EDT 2009


Hello all.

This is an update to PHP Markdown and PHP Markdown Extra correcting a
couple of bugs that got reported since last release.

I also decided to enable in this release shortcut-style reference
links (as present in Markdown.pl 1.0.2 beta), as most implementations
of Markdown accepts them by default. It's also because waiting for
John to release officially version 1.0.2 as an actual release (instead
of a beta) for enabling this feature looks like a dead end at the
moment.

So you can download it from here:
<http://michelf.com/projects/php-markdown/>

As usual, you can also grab the latest release from the PEAR channel
at <http://pear.michelf.com/> or the Git repository mirror at <http://git.michelf.com/php-markdown/
>


Here is the detailed list of changes.


1.0.1n (10 Oct 2009):

* Enabled reference-style shortcut links. Now you can write reference-
style
links with less brakets:

This is [my website].

[my website]: http://example.com/

This was added in the 1.0.2 betas, but commented out in the 1.0.1
branch,
waiting for the feature to be officialized. [But half of the other
Markdown
implementations are supporting this syntax][half], so it makes sense
for
compatibility's sake to allow it in PHP Markdown too.

[half]: http://babelmark.bobtfish.net/?markdown=This+is+%5Bmy+website%5D.%0D%0A%09%09%0D%0A%5Bmy+website%5D%3A+http%3A%2F%2Fexample.com%2F%0D%0A&src=1&dest=2

* Now accepting many valid email addresses in autolinks that were
previously rejected, such as:

<abc+mailbox/department=shipping at example.com>
<!#$%&'*+-/=?^_`.{|}~@example.com>
<"abc at def"@example.com>
<"Fred Bloggs"@example.com>
<jsmith@[192.0.2.1]>

* Now accepting spaces in URLs for inline and reference-style links.
Such
URLs need to be surrounded by angle brakets. For instance:

[link text](<http://url/with space> "optional title")

[link text][ref]
[ref]: <http://url/with space> "optional title"

There is still a quirk which may prevent this from working correctly
with
relative URLs in inline-style links however.

* Fix for adjacent list of different kind where the second list could
end as a sublist of the first when not separated by an empty line.

* Fixed a bug where inline-style links wouldn't be recognized when the
link
definition contains a line break between the url and the title.

* Fixed a bug where tags where the name contains an underscore aren't
parsed
correctly.

* Fixed some corner-cases mixing underscore-ephasis and asterisk-
emphasis.


Extra 1.2.4 (10 Oct 2009):

* Fixed a problem where unterminated tags in indented code blocks could
prevent proper escaping of characaters in the code block.


--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the Markdown-Discuss mailing list