-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ PECL Sundown provides straight forward object oriented Markdown API and customiz | |
<email>[email protected]</email> | ||
<active>yes</active> | ||
</lead> | ||
<date>2012-04-20</date> | ||
<date>2012-04-22</date> | ||
<version> | ||
<release>0.3.2</release> | ||
<release>0.3.3</release> | ||
<api>0.3.0</api> | ||
</version> | ||
<stability> | ||
|
@@ -26,10 +26,10 @@ PECL Sundown provides straight forward object oriented Markdown API and customiz | |
</stability> | ||
<license uri="http://www.php.net/license">PHP</license> | ||
<notes> | ||
bumped up 0.3.2 | ||
bumped up 0.3.3 | ||
|
||
[summary] | ||
* use no_intra_emphasis instead of no_intraemphasis | ||
* fix #16 missing space_after_headers extension | ||
</notes> | ||
<contents> | ||
<dir name="/"> | ||
|
@@ -98,6 +98,24 @@ bumped up 0.3.2 | |
<providesextension>sundown</providesextension> | ||
<extsrcrelease/> | ||
<changelog> | ||
<release> | ||
<stability> | ||
<release>beta</release> | ||
<api>beta</api> | ||
</stability> | ||
<version> | ||
<release>0.3.2</release> | ||
<api>0.3.0</api> | ||
</version> | ||
<date>2012-04-20</date> | ||
<notes> | ||
bumped up 0.3.2 | ||
|
||
[summary] | ||
* use no_intra_emphasis instead of no_intraemphasis | ||
</notes> | ||
</release> | ||
|
||
<release> | ||
<stability> | ||
<release>beta</release> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--TEST-- | ||
check for space_after_headers behavior | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("sundown")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$data = <<<EOF | ||
#Level1 | ||
EOF; | ||
|
||
echo "space_after_headers disabled:\n"; | ||
$a = new Sundown\Markdown(new Sundown\Render\HTML(), array("space_after_headers"=>false)); | ||
echo $a->render($data); | ||
echo PHP_EOL; | ||
echo "space_after_headers enabled:\n"; | ||
$a = new Sundown\Markdown(new Sundown\Render\HTML(), array("space_after_headers"=>true)); | ||
echo $a->render($data); | ||
--EXPECT-- | ||
space_after_headers disabled: | ||
<h1>Level1</h1> | ||
|
||
space_after_headers enabled: | ||
<p>#Level1</p> |