1PHP Markdown Extra
2==================
3
4Version 1.2.5 - Sun 8 Jan 2012
5
6by Michel Fortin
7<http://michelf.com/>
8
9based on Markdown by John Gruber
10<http://daringfireball.net/>
11
12
13Introduction
14------------
15
16This is a special version of PHP Markdown with extra features. See
17<http://michelf.com/projects/php-markdown/extra/> for details.
18
19Markdown is a text-to-HTML conversion tool for web writers. Markdown
20allows you to write using an easy-to-read, easy-to-write plain text
21format, then convert it to structurally valid XHTML (or HTML).
22
23"Markdown" is two things: a plain text markup syntax, and a software
24tool, written in Perl, that converts the plain text markup to HTML.
25PHP Markdown is a port to PHP of the original Markdown program by
26John Gruber.
27
28PHP Markdown can work as a plug-in for WordPress and bBlog, as a
29modifier for the Smarty templating engine, or as a remplacement for
30textile formatting in any software that support textile.
31
32Full documentation of Markdown's syntax is available on John's
33Markdown page: <http://daringfireball.net/projects/markdown/>
34
35
36Installation and Requirement
37----------------------------
38
39PHP Markdown requires PHP version 4.0.5 or later.
40
41
42### WordPress ###
43
44PHP Markdown works with [WordPress][wp], version 1.2 or later.
45
46 [wp]: http://wordpress.org/
47
481.  To use PHP Markdown with WordPress, place the "makrdown.php" file
49    in the "plugins" folder. This folder is located inside
50    "wp-content" at the root of your site:
51
52        (site home)/wp-content/plugins/
53
542.  Activate the plugin with the administrative interface of
55    WordPress. In the "Plugins" section you will now find Markdown.
56    To activate the plugin, click on the "Activate" button on the
57    same line than Markdown. Your entries will now be formatted by
58    PHP Markdown.
59
603.  To post Markdown content, you'll first have to disable the
61	"visual" editor in the User section of WordPress.
62
63You can configure PHP Markdown to not apply to the comments on your
64WordPress weblog. See the "Configuration" section below.
65
66It is not possible at this time to apply a different set of
67filters to different entries. All your entries will be formated by
68PHP Markdown. This is a limitation of WordPress. If your old entries
69are written in HTML (as opposed to another formatting syntax, like
70Textile), they'll probably stay fine after installing Markdown.
71
72
73### bBlog ###
74
75PHP Markdown also works with [bBlog][bb].
76
77 [bb]: http://www.bblog.com/
78
79To use PHP Markdown with bBlog, rename "markdown.php" to
80"modifier.markdown.php" and place the file in the "bBlog_plugins"
81folder. This folder is located inside the "bblog" directory of
82your site, like this:
83
84        (site home)/bblog/bBlog_plugins/modifier.markdown.php
85
86Select "Markdown" as the "Entry Modifier" when you post a new
87entry. This setting will only apply to the entry you are editing.
88
89
90### Replacing Textile in TextPattern ###
91
92[TextPattern][tp] use [Textile][tx] to format your text. You can
93replace Textile by Markdown in TextPattern without having to change
94any code by using the *Texitle Compatibility Mode*. This may work
95with other software that expect Textile too.
96
97 [tx]: http://www.textism.com/tools/textile/
98 [tp]: http://www.textpattern.com/
99
1001.  Rename the "markdown.php" file to "classTextile.php". This will
101	make PHP Markdown behave as if it was the actual Textile parser.
102
1032.  Replace the "classTextile.php" file TextPattern installed in your
104	web directory. It can be found in the "lib" directory:
105
106		(site home)/textpattern/lib/
107
108Contrary to Textile, Markdown does not convert quotes to curly ones
109and does not convert multiple hyphens (`--` and `---`) into en- and
110em-dashes. If you use PHP Markdown in Textile Compatibility Mode, you
111can solve this problem by installing the "smartypants.php" file from
112[PHP SmartyPants][psp] beside the "classTextile.php" file. The Textile
113Compatibility Mode function will use SmartyPants automatically without
114further modification.
115
116 [psp]: http://michelf.com/projects/php-smartypants/
117
118
119### In Your Own Programs ###
120
121You can use PHP Markdown easily in your current PHP program. Simply
122include the file and then call the Markdown function on the text you
123want to convert:
124
125    include_once "markdown.php";
126    $my_html = Markdown($my_text);
127
128If you wish to use PHP Markdown with another text filter function
129built to parse HTML, you should filter the text *after* the Markdown
130function call. This is an example with [PHP SmartyPants][psp]:
131
132    $my_html = SmartyPants(Markdown($my_text));
133
134
135### With Smarty ###
136
137If your program use the [Smarty][sm] template engine, PHP Markdown
138can now be used as a modifier for your templates. Rename "markdown.php"
139to "modifier.markdown.php" and put it in your smarty plugins folder.
140
141  [sm]: http://smarty.php.net/
142
143If you are using MovableType 3.1 or later, the Smarty plugin folder is
144located at `(MT CGI root)/php/extlib/smarty/plugins`. This will allow
145Markdown to work on dynamic pages.
146
147
148### Updating Markdown in Other Programs ###
149
150Many web applications now ship with PHP Markdown, or have plugins to
151perform the conversion to HTML. You can update PHP Markdown -- or
152replace it with PHP Markdown Extra -- in many of these programs by
153swapping the old "markdown.php" file for the new one.
154
155Here is a short non-exhaustive list of some programs and where they
156hide the "markdown.php" file.
157
158| Program   | Path to Markdown
159| -------   | ----------------
160| [Pivot][] | `(site home)/pivot/includes/markdown/`
161
162If you're unsure if you can do this with your application, ask the
163developer, or wait for the developer to update his application or
164plugin with the new version of PHP Markdown.
165
166 [Pivot]: http://pivotlog.net/
167
168
169Configuration
170-------------
171
172By default, PHP Markdown produces XHTML output for tags with empty
173elements. E.g.:
174
175    <br />
176
177Markdown can be configured to produce HTML-style tags; e.g.:
178
179    <br>
180
181To do this, you  must edit the "MARKDOWN_EMPTY_ELEMENT_SUFFIX"
182definition below the "Global default settings" header at the start of
183the "markdown.php" file.
184
185
186### WordPress-Specific Settings ###
187
188By default, the Markdown plugin applies to both posts and comments on
189your WordPress weblog. To deactivate one or the other, edit the
190`MARKDOWN_WP_POSTS` or `MARKDOWN_WP_COMMENTS` definitions under the
191"WordPress settings" header at the start of the "markdown.php" file.
192
193
194Bugs
195----
196
197To file bug reports please send email to:
198<michel.fortin@michelf.com>
199
200Please include with your report: (1) the example input; (2) the output you
201expected; (3) the output PHP Markdown actually produced.
202
203
204Version History
205---------------
206
2071.0.1o (8 Jan 2012):
208
209*	Silenced a new warning introduced around PHP 5.3 complaining about
210	POSIX characters classes not being implemented. PHP Markdown does not
211	use POSIX character classes, but it nevertheless trigged that warning.
212
213
214Extra 1.2.5 (8 Jan 2012):
215
216*	Fixed an issue preventing fenced code blocks indented inside lists items
217	and elsewhere from being interpreted correctly.
218
219*	Fixed an issue where HTML tags inside fenced code blocks were sometime
220	not encoded with entities.
221
222
2231.0.1n (10 Oct 2009):
224
225*	Enabled reference-style shortcut links. Now you can write reference-style
226	links with less brakets:
227
228		This is [my website].
229
230		[my website]: http://example.com/
231
232	This was added in the 1.0.2 betas, but commented out in the 1.0.1 branch,
233	waiting for the feature to be officialized. [But half of the other Markdown
234	implementations are supporting this syntax][half], so it makes sense for
235	compatibility's sake to allow it in PHP Markdown too.
236
237 [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
238
239*	Now accepting many valid email addresses in autolinks that were
240	previously rejected, such as:
241
242		<abc+mailbox/department=shipping@example.com>
243		<!#$%&'*+-/=?^_`.{|}~@example.com>
244		<"abc@def"@example.com>
245		<"Fred Bloggs"@example.com>
246		<jsmith@[192.0.2.1]>
247
248*	Now accepting spaces in URLs for inline and reference-style links. Such
249	URLs need to be surrounded by angle brakets. For instance:
250
251		[link text](<http://url/with space> "optional title")
252
253		[link text][ref]
254		[ref]: <http://url/with space> "optional title"
255
256	There is still a quirk which may prevent this from working correctly with
257	relative URLs in inline-style links however.
258
259*	Fix for adjacent list of different kind where the second list could
260	end as a sublist of the first when not separated by an empty line.
261
262*	Fixed a bug where inline-style links wouldn't be recognized when the link
263	definition contains a line break between the url and the title.
264
265*	Fixed a bug where tags where the name contains an underscore aren't parsed
266	correctly.
267
268*	Fixed some corner-cases mixing underscore-ephasis and asterisk-emphasis.
269
270
271Extra 1.2.4 (10 Oct 2009):
272
273*	Fixed a problem where unterminated tags in indented code blocks could
274	prevent proper escaping of characaters in the code block.
275
276
277Extra 1.2.3 (31 Dec 2008):
278
279*	In WordPress pages featuring more than one post, footnote id prefixes are
280	now automatically applied with the current post ID to avoid clashes
281	between footnotes belonging to different posts.
282
283*	Fix for a bug introduced in Extra 1.2 where block-level HTML tags where
284	not detected correctly, thus the addition of erroneous `<p>` tags and
285	interpretation of their content as Markdown-formatted instead of
286	HTML-formatted.
287
288
289Extra 1.2.2 (21 Jun 2008):
290
291*	Fixed a problem where abbreviation definitions, footnote
292	definitions and link references were stripped inside
293	fenced code blocks.
294
295*	Fixed a bug where characters such as `"` in abbreviation
296	definitions weren't properly encoded to HTML entities.
297
298*	Fixed a bug where double quotes `"` were not correctly encoded
299	as HTML entities when used inside a footnote reference id.
300
301
3021.0.1m (21 Jun 2008):
303
304*	Lists can now have empty items.
305
306*	Rewrote the emphasis and strong emphasis parser to fix some issues
307	with odly placed and overlong markers.
308
309
310Extra 1.2.1 (27 May 2008):
311
312*	Fixed a problem where Markdown headers and horizontal rules were
313	transformed into their HTML equivalent inside fenced code blocks.
314
315
316Extra 1.2 (11 May 2008):
317
318*	Added fenced code block syntax which don't require indentation
319	and can start and end with blank lines. A fenced code block
320	starts with a line of consecutive tilde (~) and ends on the
321	next line with the same number of consecutive tilde. Here's an
322	example:
323
324	    ~~~~~~~~~~~~
325		Hello World!
326		~~~~~~~~~~~~
327
328*	Rewrote parts of the HTML block parser to better accomodate
329	fenced code blocks.
330
331*	Footnotes may now be referenced from within another footnote.
332
333*	Added programatically-settable parser property `predef_attr` for
334	predefined attribute definitions.
335
336*	Fixed an issue where an indented code block preceded by a blank
337	line containing some other whitespace would confuse the HTML
338	block parser into creating an HTML block when it should have
339	been code.
340
341
3421.0.1l (11 May 2008):
343
344*	Now removing the UTF-8 BOM at the start of a document, if present.
345
346*	Now accepting capitalized URI schemes (such as HTTP:) in automatic
347	links, such as `<HTTP://EXAMPLE.COM/>`.
348
349*	Fixed a problem where `<hr@example.com>` was seen as a horizontal
350	rule instead of an automatic link.
351
352*	Fixed an issue where some characters in Markdown-generated HTML
353	attributes weren't properly escaped with entities.
354
355*	Fix for code blocks as first element of a list item. Previously,
356	this didn't create any code block for item 2:
357
358		*   Item 1 (regular paragraph)
359
360		*       Item 2 (code block)
361
362*	A code block starting on the second line of a document wasn't seen
363	as a code block. This has been fixed.
364
365*	Added programatically-settable parser properties `predef_urls` and
366	`predef_titles` for predefined URLs and titles for reference-style
367	links. To use this, your PHP code must call the parser this way:
368
369		$parser = new Markdwon_Parser;
370		$parser->predef_urls = array('linkref' => 'http://example.com');
371		$html = $parser->transform($text);
372
373	You can then use the URL as a normal link reference:
374
375		[my link][linkref]
376		[my link][linkRef]
377
378	Reference names in the parser properties *must* be lowercase.
379	Reference names in the Markdown source may have any case.
380
381*	Added `setup` and `teardown` methods which can be used by subclassers
382	as hook points to arrange the state of some parser variables before and
383	after parsing.
384
385
386Extra 1.1.7 (26 Sep 2007):
387
3881.0.1k (26 Sep 2007):
389
390*	Fixed a problem introduced in 1.0.1i where three or more identical
391	uppercase letters, as well as a few other symbols, would trigger
392	a horizontal line.
393
394
395Extra 1.1.6 (4 Sep 2007):
396
3971.0.1j (4 Sep 2007):
398
399*	Fixed a problem introduced in 1.0.1i where the closing `code` and
400	`pre` tags at the end of a code block were appearing in the wrong
401	order.
402
403*	Overriding configuration settings by defining constants from an
404	external before markdown.php is included is now possible without
405	producing a PHP warning.
406
407
408Extra 1.1.5 (31 Aug 2007):
409
4101.0.1i (31 Aug 2007):
411
412*	Fixed a problem where an escaped backslash before a code span
413	would prevent the code span from being created. This should now
414	work as expected:
415
416		Litteral backslash: \\`code span`
417
418*	Overall speed improvements, especially with long documents.
419
420
421Extra 1.1.4 (3 Aug 2007):
422
4231.0.1h (3 Aug 2007):
424
425*	Added two properties (`no_markup` and `no_entities`) to the parser
426	allowing HTML tags and entities to be disabled.
427
428*	Fix for a problem introduced in 1.0.1g where posting comments in
429	WordPress would trigger PHP warnings and cause some markup to be
430	incorrectly filtered by the kses filter in WordPress.
431
432
433Extra 1.1.3 (3 Jul 2007):
434
435*	Fixed a performance problem when parsing some invalid HTML as an HTML
436	block which was resulting in too much recusion and a segmentation fault
437	for long documents.
438
439*	The markdown="" attribute now accepts unquoted values.
440
441*	Fixed an issue where underscore-emphasis didn't work when applied on the
442	first or the last word of an element having the markdown="1" or
443	markdown="span" attribute set unless there was some surrounding whitespace.
444	This didn't work:
445
446		<p markdown="1">_Hello_ _world_</p>
447
448	Now it does produce emphasis as expected.
449
450*	Fixed an issue preventing footnotes from working when the parser's
451	footnote id prefix variable (fn_id_prefix) is not empty.
452
453*	Fixed a performance problem where the regular expression for strong
454	emphasis introduced in version 1.1 could sometime be long to process,
455	give slightly wrong results, and in some circumstances could remove
456	entirely the content for a whole paragraph.
457
458*	Fixed an issue were abbreviations tags could be incorrectly added
459	inside URLs and title of links.
460
461*	Placing footnote markers inside a link, resulting in two nested links, is
462	no longer allowed.
463
464
4651.0.1g (3 Jul 2007):
466
467*	Fix for PHP 5 compiled without the mbstring module. Previous fix to
468	calculate the length of UTF-8 strings in `detab` when `mb_strlen` is
469	not available was only working with PHP 4.
470
471*	Fixed a problem with WordPress 2.x where full-content posts in RSS feeds
472	were not processed correctly by Markdown.
473
474*	Now supports URLs containing literal parentheses for inline links
475	and images, such as:
476
477		[WIMP](http://en.wikipedia.org/wiki/WIMP_(computing))
478
479	Such parentheses may be arbitrarily nested, but must be
480	balanced. Unbalenced parentheses are allowed however when the URL
481	when escaped or when the URL is enclosed in angle brakets `<>`.
482
483*	Fixed a performance problem where the regular expression for strong
484	emphasis introduced in version 1.0.1d could sometime be long to process,
485	give slightly wrong results, and in some circumstances could remove
486	entirely the content for a whole paragraph.
487
488*	Some change in version 1.0.1d made possible the incorrect nesting of
489	anchors within each other. This is now fixed.
490
491*	Fixed a rare issue where certain MD5 hashes in the content could
492	be changed to their corresponding text. For instance, this:
493
494		The MD5 value for "+" is "26b17225b626fb9238849fd60eabdf60".
495
496	was incorrectly changed to this in previous versions of PHP Markdown:
497
498		<p>The MD5 value for "+" is "+".</p>
499
500*	Now convert escaped characters to their numeric character
501	references equivalent.
502
503	This fix an integration issue with SmartyPants and backslash escapes.
504	Since Markdown and SmartyPants have some escapable characters in common,
505	it was sometime necessary to escape them twice. Previously, two
506	backslashes were sometime required to prevent Markdown from "eating" the
507	backslash before SmartyPants sees it:
508
509		Here are two hyphens: \\--
510
511	Now, only one backslash will do:
512
513		Here are two hyphens: \--
514
515
516Extra 1.1.2 (7 Feb 2007)
517
518*	Fixed an issue where headers preceded too closely by a paragraph
519	(with no blank line separating them) where put inside the paragraph.
520
521*	Added the missing TextileRestricted method that was added to regular
522	PHP Markdown since 1.0.1d but which I forgot to add to Extra.
523
524
5251.0.1f (7 Feb 2007):
526
527*	Fixed an issue with WordPress where manually-entered excerpts, but
528	not the auto-generated ones, would contain nested paragraphs.
529
530*	Fixed an issue introduced in 1.0.1d where headers and blockquotes
531	preceded too closely by a paragraph (not separated by a blank line)
532	where incorrectly put inside the paragraph.
533
534*	Fixed an issue introduced in 1.0.1d in the tokenizeHTML method where
535	two consecutive code spans would be merged into one when together they
536	form a valid tag in a multiline paragraph.
537
538*	Fixed an long-prevailing issue where blank lines in code blocks would
539	be doubled when the code block is in a list item.
540
541	This was due to the list processing functions relying on artificially
542	doubled blank lines to correctly determine when list items should
543	contain block-level content. The list item processing model was thus
544	changed to avoid the need for double blank lines.
545
546*	Fixed an issue with `<% asp-style %>` instructions used as inline
547	content where the opening `<` was encoded as `&lt;`.
548
549*	Fixed a parse error occuring when PHP is configured to accept
550	ASP-style delimiters as boundaries for PHP scripts.
551
552*	Fixed a bug introduced in 1.0.1d where underscores in automatic links
553	got swapped with emphasis tags.
554
555
556Extra 1.1.1 (28 Dec 2006)
557
558*	Fixed a problem where whitespace at the end of the line of an atx-style
559	header would cause tailing `#` to appear as part of the header's content.
560	This was caused by a small error in the regex that handles the definition
561	for the id attribute in PHP Markdown Extra.
562
563*	Fixed a problem where empty abbreviations definitions would eat the
564	following line as its definition.
565
566*	Fixed an issue with calling the Markdown parser repetitivly with text
567	containing footnotes. The footnote hashes were not reinitialized properly.
568
569
5701.0.1e (28 Dec 2006)
571
572*	Added support for internationalized domain names for email addresses in
573	automatic link. Improved the speed at which email addresses are converted
574	to entities. Thanks to Milian Wolff for his optimisations.
575
576*	Made deterministic the conversion to entities of email addresses in
577	automatic links. This means that a given email address will always be
578	encoded the same way.
579
580*	PHP Markdown will now use its own function to calculate the length of an
581	UTF-8 string in `detab` when `mb_strlen` is not available instead of
582	giving a fatal error.
583
584
585Extra 1.1 (1 Dec 2006)
586
587*	Added a syntax for footnotes.
588
589*	Added an experimental syntax to define abbreviations.
590
591
5921.0.1d (1 Dec 2006)
593
594*   Fixed a bug where inline images always had an empty title attribute. The
595	title attribute is now present only when explicitly defined.
596
597*	Link references definitions can now have an empty title, previously if the
598	title was defined but left empty the link definition was ignored. This can
599	be useful if you want an empty title attribute in images to hide the
600	tooltip in Internet Explorer.
601
602*	Made `detab` aware of UTF-8 characters. UTF-8 multi-byte sequences are now
603	correctly mapped to one character instead of the number of bytes.
604
605*	Fixed a small bug with WordPress where WordPress' default filter `wpautop`
606	was not properly deactivated on comment text, resulting in hard line breaks
607	where Markdown do not prescribes them.
608
609*	Added a `TextileRestrited` method to the textile compatibility mode. There
610	is no restriction however, as Markdown does not have a restricted mode at
611	this point. This should make PHP Markdown work again in the latest
612	versions of TextPattern.
613
614*   Converted PHP Markdown to a object-oriented design.
615
616*	Changed span and block gamut methods so that they loop over a
617	customizable list of methods. This makes subclassing the parser a more
618	interesting option for creating syntax extensions.
619
620*	Also added a "document" gamut loop which can be used to hook document-level
621	methods (like for striping link definitions).
622
623*	Changed all methods which were inserting HTML code so that they now return
624	a hashed representation of the code. New methods `hashSpan` and `hashBlock`
625	are used to hash respectivly span- and block-level generated content. This
626	has a couple of significant effects:
627
628	1.	It prevents invalid nesting of Markdown-generated elements which
629	    could occur occuring with constructs like `*something [link*][1]`.
630	2.	It prevents problems occuring with deeply nested lists on which
631	    paragraphs were ill-formed.
632	3.	It removes the need to call `hashHTMLBlocks` twice during the the
633		block gamut.
634
635	Hashes are turned back to HTML prior output.
636
637*	Made the block-level HTML parser smarter using a specially-crafted regular
638	expression capable of handling nested tags.
639
640*	Solved backtick issues in tag attributes by rewriting the HTML tokenizer to
641	be aware of code spans. All these lines should work correctly now:
642
643		<span attr='`ticks`'>bar</span>
644		<span attr='``double ticks``'>bar</span>
645		`<test a="` content of attribute `">`
646
647*	Changed the parsing of HTML comments to match simply from `<!--` to `-->`
648	instead using of the more complicated SGML-style rule with paired `--`.
649	This is how most browsers parse comments and how XML defines them too.
650
651*	`<address>` has been added to the list of block-level elements and is now
652	treated as an HTML block instead of being wrapped within paragraph tags.
653
654*	Now only trim trailing newlines from code blocks, instead of trimming
655	all trailing whitespace characters.
656
657*	Fixed bug where this:
658
659		[text](http://m.com "title" )
660
661	wasn't working as expected, because the parser wasn't allowing for spaces
662	before the closing paren.
663
664*	Filthy hack to support markdown='1' in div tags.
665
666*	_DoAutoLinks() now supports the 'dict://' URL scheme.
667
668*	PHP- and ASP-style processor instructions are now protected as
669	raw HTML blocks.
670
671		<? ... ?>
672		<% ... %>
673
674*	Fix for escaped backticks still triggering code spans:
675
676		There are two raw backticks here: \` and here: \`, not a code span
677
678
679Extra 1.0 - 5 September 2005
680
681*   Added support for setting the id attributes for headers like this:
682
683        Header 1            {#header1}
684        ========
685
686        ## Header 2 ##      {#header2}
687
688    This only work only for headers for now.
689
690*   Tables will now work correctly as the first element of a definition
691    list. For example, this input:
692
693        Term
694
695        :   Header  | Header
696            ------- | -------
697            Cell    | Cell
698
699    used to produce no definition list and a table where the first
700    header was named ": Header". This is now fixed.
701
702*   Fix for a problem where a paragraph following a table was not
703    placed between `<p>` tags.
704
705
706Extra 1.0b4 - 1 August 2005
707
708*   Fixed some issues where whitespace around HTML blocks were trigging
709    empty paragraph tags.
710
711*   Fixed an HTML block parsing issue that would cause a block element
712    following a code span or block with unmatched opening bracket to be
713    placed inside a paragraph.
714
715*   Removed some PHP notices that could appear when parsing definition
716    lists and tables with PHP notice reporting flag set.
717
718
719Extra 1.0b3 - 29 July 2005
720
721*   Definition lists now require a blank line before each term. Solves
722    an ambiguity where the last line of lazy-indented definitions could
723    be mistaken by PHP Markdown as a new term in the list.
724
725*   Definition lists now support multiple terms per definition.
726
727*   Some special tags were replaced in the output by their md5 hash
728    key. Things such as this now work as expected:
729
730        ## Header <?php echo $number ?> ##
731
732
733Extra 1.0b2 - 26 July 2005
734
735*   Definition lists can now take two or more definitions for one term.
736    This should have been the case before, but a bug prevented this
737    from working right.
738
739*   Fixed a problem where single column table with a pipe only at the
740    end where not parsed as table. Here is such a table:
741
742        | header
743        | ------
744        | cell
745
746*   Fixed problems with empty cells in the first column of a table with
747    no leading pipe, like this one:
748
749        header | header
750        ------ | ------
751               | cell
752
753*   Code spans containing pipes did not within a table. This is now
754    fixed by parsing code spans before splitting rows into cells.
755
756*   Added the pipe character to the backlash escape character lists.
757
758Extra 1.0b1 (25 Jun 2005)
759
760*   First public release of PHP Markdown Extra.
761
762
763Copyright and License
764---------------------
765
766PHP Markdown & Extra
767Copyright (c) 2004-2009 Michel Fortin
768<http://michelf.com/>
769All rights reserved.
770
771Based on Markdown
772Copyright (c) 2003-2005 John Gruber
773<http://daringfireball.net/>
774All rights reserved.
775
776Redistribution and use in source and binary forms, with or without
777modification, are permitted provided that the following conditions are
778met:
779
780*   Redistributions of source code must retain the above copyright
781    notice, this list of conditions and the following disclaimer.
782
783*   Redistributions in binary form must reproduce the above copyright
784    notice, this list of conditions and the following disclaimer in the
785    documentation and/or other materials provided with the
786    distribution.
787
788*   Neither the name "Markdown" nor the names of its contributors may
789    be used to endorse or promote products derived from this software
790    without specific prior written permission.
791
792This software is provided by the copyright holders and contributors "as
793is" and any express or implied warranties, including, but not limited
794to, the implied warranties of merchantability and fitness for a
795particular purpose are disclaimed. In no event shall the copyright owner
796or contributors be liable for any direct, indirect, incidental, special,
797exemplary, or consequential damages (including, but not limited to,
798procurement of substitute goods or services; loss of use, data, or
799profits; or business interruption) however caused and on any theory of
800liability, whether in contract, strict liability, or tort (including
801negligence or otherwise) arising in any way out of the use of this
802software, even if advised of the possibility of such damage.
803