Commit graph

398 commits

Author SHA1 Message Date
Michael Butler
1bd48d3718 Add PHPUnit xml 2018-01-27 13:50:00 -05:00
Michael Butler
4bedb1b063 Require PHP 5.7 2018-01-27 13:49:47 -05:00
Michael Butler
3cfd0562e6 Change spaces to tabs in Readme.php 2018-01-27 12:01:31 -05:00
Michel Fortin
01ab082b35 Preparing 1.8.0 release. 2018-01-14 19:49:33 -05:00
Michel Fortin
28bad1314f Updating history for role attribute for footnotes. 2018-01-14 16:44:48 -05:00
Tobias Bengfort
2630bd5a40 add backling aria-label 2017-12-29 19:54:51 +01:00
Tobias Bengfort
293d17ab70 fix typo 2017-12-29 10:15:39 +01:00
Tobias Bengfort
aee8756b31 add dpub-aria roles for footnotes
see https://www.w3.org/TR/dpub-aria/
2017-12-29 09:43:39 +01:00
Michel Fortin
f7bc32eefb Fix for issue 285: need to reset the state for regular emphasis when unwinding in toItalicsAndBold. 2017-10-10 20:04:05 -04:00
Michel Fortin
64045149fa Avoid unnecessary reentrency in doItalicsAndBold. 2017-10-10 20:03:06 -04:00
Michel Fortin
83caf0b140 Added hashtag_protection to readme. 2017-06-17 07:56:57 -04:00
Timothée Jaussoin
d4c3a97b24 Rename the variable $hashtag_protection 2017-06-16 23:05:39 +02:00
Timothée Jaussoin
6508d98322 Add an option to enforce the space when converting atx-style headers 2017-06-13 23:17:33 +02:00
Michel Fortin
62febd414a Updating the maintenance status of the obsolete plugin/library package mentioned in the Readme. 2017-04-24 09:22:48 -04:00
Michel Fortin
504cf8c1a9 Remove extra leading backslash in namespace parser names in Readme. 2017-04-24 09:21:14 -04:00
Michel Fortin
d18bf6e59a Reworded Usage section of Readme for Composer autoloading. Added comments in Readme.php for Composer users. 2017-04-24 09:20:09 -04:00
Jon Dufresne
3f1aae9b6a Use PSR-4 for autoloading
This change brings this library's autoloading up to modern standards in
the larger PHP community and uses methods recommended by the PHP
dependency manager, composer.

From PSR-0 http://www.php-fig.org/psr/psr-0/

> As of 2014-10-21 PSR-0 has been marked as deprecated. PSR-4 is now
> recommended as an alternative.

PSR-4: http://www.php-fig.org/psr/psr-4/

From composer https://getcomposer.org/doc/04-schema.md#autoload

> PSR-4 is the recommended way since it offers greater ease of use (no
> need to regenerate the autoloader when you add classes).
2017-04-23 14:57:48 -07:00
Jon Dufresne
a1595371cf Clean up trailing white space across all files 2017-04-22 14:04:08 -07:00
Michel Fortin
98d6ee20aa Merge branch 'leading' of https://github.com/jdufresne/php-markdown into lib 2017-04-22 13:46:32 -04:00
Jon Dufresne
9aa38de317 Remove leading backslash in use statements
While it is acceptable syntax, it is unnecessary and not recommended by
the PHP documentation:

https://secure.php.net/manual/en/language.namespaces.importing.php#language.namespaces.importing

> Note that for namespaced names (fully qualified namespace names
> containing namespace separator, such as Foo\Bar as opposed to global
> names that do not, such as FooBar), the leading backslash is
> unnecessary and not recommended, as import names must be fully
> qualified, and are not processed relative to the current namespace.
2017-04-22 10:29:16 -07:00
Jon Dufresne
08e665ca08 Add basic gitignore file to ignore composer's generated files 2017-04-22 09:41:14 -07:00
Casper Langemeijer
251ffcce75 Add semicolon 2017-04-20 13:50:08 +02:00
Casper Langemeijer
0c1337a4d4 Refactor create_function into anonymous function 2017-04-17 15:21:13 +02:00
Christian Kraus
33e762c73d Fix typo in phpdoc comment 2016-11-24 00:26:17 +03:30
Wes Hooper
69ce5f5890 Fix typo in Readme.md 2016-11-05 09:35:25 +00:00
Tomáš Votruba
76f31b1622 composer: drop deprecated alias
I recommend dropping alias, since it has not enough attention to keep them up to date. Usual case for most I've seen.
Now it's version 1.8-dev so it's been useless for a while now.
2016-10-30 21:34:27 +01:00
Michel Fortin
1f51cc5209 Bumped version number to 1.7.0. 2016-10-29 14:58:20 -04:00
Michel Fortin
05747a4749 Fixing two-space-at-end-of-line hard breaks inside of HTML blocks expecting span-level content.
- The code should insert the empty-string hash after the new line (at the beginning of the next line) true to its comment above. Instead it was added after, probably with various side effects such as breaking hard breaks.

Fix #252
2016-10-29 14:26:18 -04:00
Michel Fortin
8623708448 Fixing handling of list items with span-level content so that nested lists aren't passed through the span gamut.
This more principled approach should have no effect on the output other than prevent line breaks from appearing between the text of a list item and its nested list. It has become somewhat necessary after adding `hard_wrap`.
2016-08-29 16:25:25 -04:00
Michel Fortin
7f07fcacea Updated copyright year. 2016-08-29 16:25:22 -04:00
Michel Fortin
25414a44eb Added mention of hard_wrap to version history. 2016-08-29 16:25:19 -04:00
Michel Fortin
6517f33f31 Eat spaces before the \n when hard-wrapping. 2016-08-29 16:25:12 -04:00
Michel Fortin
c6b869e28f Fixing Fixing space->tab indentation. 2016-08-29 16:24:35 -04:00
Jonathan Cohlmeyer
a0012c0590 [#169] Adding hard wrap option to enable line breaks without two trailing spaces 2016-08-27 13:31:01 -04:00
Michel Fortin
edd172b627 Merge pull request #243 from mdewilde/lib
Update Readme.md typo.
2016-08-25 07:38:04 -04:00
mdewilde
f53122e71b Update Readme.md
Correct probably typo
2016-08-25 13:31:36 +02:00
Viktor Szakats
0bec870817 Restore https after f5cd0dbcf4 2016-07-13 22:57:33 +02:00
Michel Fortin
657d382ce7 Added history entry about PHPDoc comments. 2016-03-13 20:45:27 -04:00
Michel Fortin
6b4f89fd19 Merge branch 'issue/98-phpdoc-comments' of git://github.com/robbieaverill/php-markdown into lib
Reverted some changes to Readme.php and the .inc files and corrected a syntax error in MarkdownExtra.php.
2016-03-13 20:44:48 -04:00
Michel Fortin
70adbae116 Adding release notes for changes in previous commit. 2016-03-13 20:43:45 -04:00
Robbie Averill
aee1b20499 Fixed author references 2016-03-04 08:28:21 +13:00
Robbie Averill
f5cd0dbcf4 [#98] Changing to PHPDoc comments 2016-03-03 13:39:53 +13:00
Floris
9fa8f87f20 Allow custom content function for code span
Just like the option `$code_block_content_func`, but now for code-span.
Can be used to prevent the default `htmlspecialchars` or do some kind
of other logic to convert the code to html.
2016-02-04 11:42:43 +01:00
Michel Fortin
156e56ee03 Reversionned 1.5.1 as 1.6.0 to respect the versioning policy. 2015-12-23 20:37:31 -05:00
Michel Fortin
155287e422 Bumped version to 1.5.1. 2015-12-22 13:18:12 -05:00
Michel Fortin
4482d30bb0 Fix for unnecessary backtracking in the special attribute block regex.
Fixes #213.
2015-12-03 21:02:24 -05:00
Michel Fortin
f0911e737d Merge branch 'okdana-lib' into lib 2015-10-16 21:20:48 -04:00
Michel Fortin
8c45ad58f4 Updating Readme file for footnote backlink changes. 2015-10-16 21:19:16 -04:00
Michel Fortin
e1e3fc2a01 Renaming fn_backlink_text to fn_backlink_html to clarify that this is HTML content. 2015-10-16 21:13:21 -04:00
dana
e244a9e33a Made fn_backlink_text user-configurable, added U+FE0E to prevent iOS emoji display 2015-10-16 16:37:20 -05:00