Skip to content

Commit

Permalink
bumped up 0.3.4
Browse files Browse the repository at this point in the history
[summary]
  * add Sundown\Render\HTML_TOC render.
  * add Sundown\Markdown::setRender(Sundown\Render\Base $render);
  * improve build script.
  * add Changelog, adjust package.xml
  • Loading branch information
chobie committed May 14, 2012
1 parent 157e45e commit 6fe73e8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 9 deletions.
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ Install for developpers

git clone https://github.com/chobie/php-sundown.git php-sundown -b development
cd php-sundown
# this command will fetch submodule and copy neccesally files to src dir. and compile it.
rake submodule compile
sudo rake install
git submodule init && git submodule update
phpze
./configure
make
make install
# please add following line to your php.ini
# extension=sundown.so

Expand Down Expand Up @@ -229,6 +231,28 @@ $md = new \Sundown\Markdown(\Sundown\Render\HTML,array("autolink"=>true));
$md->getRender()->setRenderFlags(array("filter_html"=>true));
````

### \Sundown\Markdown::setRender(Sundown\Render\Base $render)

##### *Description*

set render instance.

##### *Parameters*

*render*: render instance

##### *Return Value*

* void

##### *Example*

````php
<?php
$md = new \Sundown\Markdown(\Sundown\Render\HTML,array("autolink"=>true));
$render2 = \Sundown\Render\HTML();
$md->setRender($render2);
````

### \Sundown\Render\Base

Expand Down
31 changes: 25 additions & 6 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ PECL Sundown provides straight forward object oriented Markdown API and customiz
<email>chobieeee@php.net</email>
<active>yes</active>
</lead>
<date>2012-04-22</date>
<date>2012-05-14</date>
<version>
<release>0.3.3</release>
<api>0.3.0</api>
<release>0.3.4</release>
<api>0.3.4</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>
bumped up 0.3.3
bumped up 0.3.4

[summary]
* fix #16 missing space_after_headers extension
* add Sundown\Render\HTML_TOC render.
* add Sundown\Markdown::setRender(Sundown\Render\Base $render);
* improve build script.
* add Changelog, adjust package.xml
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -120,6 +123,23 @@ bumped up 0.3.3
<providesextension>sundown</providesextension>
<extsrcrelease/>
<changelog>
<release>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<version>
<release>0.3.3</release>
<api>0.3.0</api>
</version>
<date>2012-04-22</date>
<notes>
bumped up 0.3.3

[summary]
* fix #16 missing space_after_headers extension
</notes>
</release>
<release>
<stability>
<release>beta</release>
Expand All @@ -137,7 +157,6 @@ bumped up 0.3.2
* use no_intra_emphasis instead of no_intraemphasis
</notes>
</release>

<release>
<stability>
<release>beta</release>
Expand Down

0 comments on commit 6fe73e8

Please sign in to comment.