1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Compare commits

...

17 Commits
1.5.1 ... 1.5.2

Author SHA1 Message Date
468d1e3da8 improve readme 2015-03-18 20:44:57 +02:00
7aa1d97bba improve readme 2015-03-18 20:43:30 +02:00
f768f9c63f improve readme 2015-03-18 20:42:44 +02:00
aa83968534 improve readme 2015-03-18 20:41:23 +02:00
85eadccc05 Merge pull request #297 from hkdobrev/patch-1
Remove "tested in PHP 5.2"
2015-03-18 20:39:40 +02:00
c94fa12d67 Remove "tested on PHP 5.2"
It is no longer tested on PHP 5.2 in Travis CI.

See https://github.com/erusev/parsedown/pull/286
2015-03-18 17:15:00 +02:00
11e02d45fa improve readme 2015-03-18 16:20:28 +02:00
ecd53f9add improve readme 2015-03-18 16:16:51 +02:00
844b2f49ea Merge pull request #249 from HelpingHand1/patch-1
Updated readme to display travis-ci.org build test
2015-03-18 16:08:13 +02:00
65116c3cb0 Merge pull request #286 from henriquemoody/travis
Remove PHP version 5.2 from Travis builds
2015-02-09 01:04:08 +02:00
147003107a Remove PHP version 5.2 from Travis builds 2015-02-08 21:00:50 -02:00
618b26056c Merge pull request #284 from jstanden/master
Fixes #283
2015-02-04 00:39:05 +02:00
b828fe7c8d Fixes #283 2015-02-03 13:58:47 -08:00
6c9df528aa Merge pull request #280 from kelunik/master
Fixes PHP 7 compatibility
2015-02-02 02:33:38 +02:00
cb8cc57742 Fixes #279 2015-02-02 00:58:24 +01:00
4b7d7cdef2 updated readme.md per comment by cebe 2014-12-13 13:01:40 -05:00
97e667ab30 Updated readme to display travis-ci.org build test 2014-12-10 18:13:48 -05:00
7 changed files with 18 additions and 8 deletions

View File

@ -5,6 +5,4 @@ php:
- 5.5 - 5.5
- 5.4 - 5.4
- 5.3 - 5.3
- 5.2
- hhvm - hhvm

View File

@ -1197,7 +1197,7 @@ class Parsedown
return; return;
} }
if (preg_match('/^[(]((?:[^ ()]|[(][^ )]+[)])+)(?:[ ]+("[^"]+"|\'[^\']+\'))?[)]/', $remainder, $matches)) if (preg_match('/^[(]((?:[^ ()]|[(][^ )]+[)])+)(?:[ ]+("[^"]*"|\'[^\']*\'))?[)]/', $remainder, $matches))
{ {
$Element['attributes']['href'] = $matches[1]; $Element['attributes']['href'] = $matches[1];
@ -1402,7 +1402,7 @@ class Parsedown
if (isset($Element['handler'])) if (isset($Element['handler']))
{ {
$markup .= $this->$Element['handler']($Element['text']); $markup .= $this->{$Element['handler']}($Element['text']);
} }
else else
{ {

View File

@ -1,15 +1,18 @@
## Parsedown ## Parsedown
[![Build Status](https://img.shields.io/travis/erusev/parsedown/master.svg?style=flat-square)](https://travis-ci.org/erusev/parsedown)
<!--[![Total Downloads](http://img.shields.io/packagist/dt/erusev/parsedown.svg?style=flat-square)](https://packagist.org/packages/erusev/parsedown)-->
Better Markdown Parser in PHP Better Markdown Parser in PHP
[[ demo ]](http://parsedown.org/demo) [See Demo](http://parsedown.org/demo)
### Features ### Features
* [Fast](http://parsedown.org/speed) * [Fast](http://parsedown.org/speed)
* [Consistent](http://parsedown.org/consistency) * [Consistent](http://parsedown.org/consistency)
* [GitHub flavored](https://help.github.com/articles/github-flavored-markdown) * [GitHub flavored](https://help.github.com/articles/github-flavored-markdown)
* [Tested](http://parsedown.org/tests/) in PHP 5.2, 5.3, 5.4, 5.5, 5.6 and [hhvm](http://www.hhvm.com/) * [Tested](http://parsedown.org/tests/) in PHP 5.3, 5.4, 5.5, 5.6 and [HHVM](http://www.hhvm.com/)
* [Extensible](https://github.com/erusev/parsedown/wiki/Writing-Extensions) * [Extensible](https://github.com/erusev/parsedown/wiki/Writing-Extensions)
* [Markdown Extra extension](https://github.com/erusev/parsedown-extra) * [Markdown Extra extension](https://github.com/erusev/parsedown-extra)

View File

@ -1 +1,2 @@
<p><img src="/md.png" alt="alt" title="title" /></p> <p><img src="/md.png" alt="alt" title="title" /></p>
<p><img src="/md.png" alt="blank title" title="" /></p>

View File

@ -1 +1,3 @@
![alt](/md.png "title") ![alt](/md.png "title")
![blank title](/md.png "")

View File

@ -1,4 +1,6 @@
<p><a href="http://example.com" title="Title">single quotes</a></p> <p><a href="http://example.com" title="Title">single quotes</a></p>
<p><a href="http://example.com" title="Title">double quotes</a></p> <p><a href="http://example.com" title="Title">double quotes</a></p>
<p><a href="http://example.com" title="">single quotes blank</a></p>
<p><a href="http://example.com" title="">double quotes blank</a></p>
<p><a href="http://example.com" title="2 Words">space</a></p> <p><a href="http://example.com" title="2 Words">space</a></p>
<p><a href="http://example.com/url-(parentheses)" title="Title">parentheses</a></p> <p><a href="http://example.com/url-(parentheses)" title="Title">parentheses</a></p>

View File

@ -2,6 +2,10 @@
[double quotes](http://example.com "Title") [double quotes](http://example.com "Title")
[single quotes blank](http://example.com '')
[double quotes blank](http://example.com "")
[space](http://example.com "2 Words") [space](http://example.com "2 Words")
[parentheses](http://example.com/url-(parentheses) "Title") [parentheses](http://example.com/url-(parentheses) "Title")