-
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
6 changed files
with
126 additions
and
30 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
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-08-11</date> | ||
<date>2012-09-30</date> | ||
<version> | ||
<release>0.3.7</release> | ||
<release>0.3.8</release> | ||
<api>0.3.7</api> | ||
</version> | ||
<stability> | ||
|
@@ -26,21 +26,11 @@ 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.7 | ||
* bumped up 0.3.8 | ||
|
||
fixed SEGV when processing tableCell and prettify source codes. | ||
- fixes #28 Wired memory limit error with autolink set. | ||
Sundown\Render\Base callbacks are able to throw exceptions. | ||
|
||
9582b04 update contributors | ||
1f11ace update README | ||
497d0a4 add a space after comma. | ||
7bc4703 fix several compile warnings | ||
a11eb98 update CFLAGS for fix compile warnings | ||
9a86d00 fixes #26:prevent SEGV when calling Sundwon\Base\tableCell | ||
26b77d6 change submodule to vmg/sundown from tanoku/sundown | ||
ee8a132 Merge pull request #24 from reeze/patch-2 | ||
0a08969 Fix build in php-src | ||
b0adcc7 Merge pull request #23 from reeze/patch-1 | ||
ebae34b Make travis report test failure since make test didn't report exit code | ||
</notes> | ||
<contents> | ||
<dir name="/"> | ||
|
@@ -89,6 +79,7 @@ ebae34b Make travis report test failure since make test didn't report exit code | |
<file role="test" name="999-regression-no12.phpt" /> | ||
<file role="test" name="999-regression-no19.phpt" /> | ||
<file role="test" name="999-regression-no26.phpt" /> | ||
<file role="test" name="999-regression-no28.phpt" /> | ||
</dir> | ||
<dir name="docs"> | ||
<file role="doc" name="ExtensionsAndRenderFlags.md" /> | ||
|
@@ -133,6 +124,35 @@ ebae34b Make travis report test failure since make test didn't report exit code | |
<providesextension>sundown</providesextension> | ||
<extsrcrelease/> | ||
<changelog> | ||
<release> | ||
<stability> | ||
<release>beta</release> | ||
<api>beta</api> | ||
</stability> | ||
<version> | ||
<release>0.3.7</release> | ||
<api>0.3.7</api> | ||
</version> | ||
<date>2012-08-11</date> | ||
<notes> | ||
* bumped up 0.3.7 | ||
|
||
fixed SEGV when processing tableCell and prettify source codes. | ||
|
||
9582b04 update contributors | ||
1f11ace update README | ||
497d0a4 add a space after comma. | ||
7bc4703 fix several compile warnings | ||
a11eb98 update CFLAGS for fix compile warnings | ||
9a86d00 fixes #26:prevent SEGV when calling Sundwon\Base\tableCell | ||
26b77d6 change submodule to vmg/sundown from tanoku/sundown | ||
ee8a132 Merge pull request #24 from reeze/patch-2 | ||
0a08969 Fix build in php-src | ||
b0adcc7 Merge pull request #23 from reeze/patch-1 | ||
ebae34b Make travis report test failure since make test didn't report exit code | ||
</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
Submodule sundown
updated
12 files
+33 −0 | Makefile.win | |
+3 −3 | README.markdown | |
+8 −0 | html/houdini.h | |
+8 −0 | html/html.h | |
+41 −9 | src/autolink.c | |
+22 −7 | src/autolink.h | |
+2 −0 | src/buffer.c | |
+8 −0 | src/buffer.h | |
+103 −57 | src/markdown.c | |
+13 −5 | src/markdown.h | |
+8 −0 | src/stack.h | |
+20 −0 | sundown.def |
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,32 @@ | ||
--TEST-- | ||
Check for https://github.com/chobie/php-sundown/issues/28 (Render should interrupt by exception) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("sundown")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
class R extends \Sundown\Render\Base | ||
{ | ||
public function image($link, $title, $alt) | ||
{ | ||
if ($link == 'doesnt/exists.jpg') { | ||
throw new \Exception("err"); | ||
} | ||
} | ||
} | ||
|
||
$c = <<<EOM | ||
# Doc | ||
 | ||
 | ||
EOM; | ||
|
||
$m = new \Sundown\Markdown(new R(), array('autolink' => true)); | ||
try { | ||
$m->render($c); | ||
} catch (Exception $e) { | ||
echo $e->getMessage(); | ||
} | ||
--EXPECT-- | ||
err |