Changeset 1486
- Timestamp:
- 06/21/06 10:00:59 (2 years ago)
- Files:
-
- trunk/doc/book/markdown.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/doc/book/markdown.php
r500 r1486 19 19 $md_list_level; 20 20 21 $MarkdownPHPVersion = 'Extra 1.0 '; # Mon 5 Sep200521 $MarkdownPHPVersion = 'Extra 1.0.1'; # Fri 9 Dec 2005 22 22 $MarkdownSyntaxVersion = '1.0.1'; # Sun 12 Dec 2004 23 23 … … 41 41 Plugin URI: http://www.michelf.com/projects/php-markdown/ 42 42 Description: <a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by <a href="http://daringfireball.net/">John Gruber</a>. <a href="http://www.michelf.com/projects/php-markdown/">More...</a> 43 Version: Extra 1.0 43 Version: Extra 1.0.1 44 44 Author: Michel Fortin 45 45 Author URI: http://www.michelf.com/ … … 1461 1461 # 1462 1462 global $md_tab_width; 1463 $text = preg_replace_callback( "{1464 (?:\ \n\\n|\\A)1463 $text = preg_replace_callback('{ 1464 (?:\n\n|\A) 1465 1465 ( # $1 = the code block -- one or more lines, starting with a space/tab 1466 1466 (?: 1467 (?:[ ] \{$md_tab_width} | \\t) # Lines must start with a tab or a tab-width of spaces1468 .*\ \n+1467 (?:[ ]{'.$md_tab_width.'} | \t) # Lines must start with a tab or a tab-width of spaces 1468 .*\n+ 1469 1469 )+ 1470 1470 ) 1471 ((?=^[ ]{0, $md_tab_width}\\S)|\\Z) # Lookahead for non-space at line-start, or end of doc1472 }xm ",1471 ((?=^[ ]{0,'.$md_tab_width.'}\S)|\Z) # Lookahead for non-space at line-start, or end of doc 1472 }xm', 1473 1473 '_DoCodeBlocks_callback', $text); 1474 1474 … … 1926 1926 See Readme file for details. 1927 1927 1928 Extra 1.0.1 - 9 December 2005 1929 1928 1930 Extra 1.0 - 5 September 2005 1929 1931