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

1086 Commits

Author SHA1 Message Date
0a6408043f Only run units on 7.4snapshot 2019-09-09 23:46:04 +01:00
01319b7572 Add 7.4 snapshot 2019-09-09 23:37:31 +01:00
0a1e4bd802 Formatting fix 2019-09-09 23:33:06 +01:00
bfdd0f29bc More specific annotation 2019-09-09 23:27:36 +01:00
5db3687892 $matches is guarenteed to contain data for the full pattern 2019-09-09 23:26:21 +01:00
bde621e4c4 Drop master from psalm requirement 2019-09-09 23:15:11 +01:00
f75e7bd970 Prefer master until next release 2019-07-31 23:25:25 +01:00
18ee4ffe04 Bump min psalm version 2019-07-25 19:18:26 +02:00
54f7719a08 Force return type to T
It's currently not a planned feature to allow Psalm to understand
the type relationship of class-name => class-instance as the array
here is constructed.
Ref: https://github.com/vimeo/psalm/issues/1969
2019-07-25 19:16:28 +02:00
f51dd8878a Drop use of undefined reference 2019-07-25 19:07:08 +02:00
211a7eb5aa Tables always acquire previous 2019-07-25 16:18:00 +02:00
37f306c3a8 Utilise constant arrays over static vars 2019-07-25 00:45:53 +02:00
ea55a9ffb0 Integer keys aren't necessary 2019-07-25 00:33:15 +02:00
b9bc0b7d37 Update expect-to-pass cache 2019-07-25 00:27:05 +02:00
34902bc80c Account for type 7 HTML blocks
These differ from type 6 blocks in a few ways (other than the HTML
element names given in the spec).

1. Type 7 blocks cannot interrupt paragraphs
2. Type 7 block must contain ONLY whitespace on the rest of the
   line, whereas type 6 blocks need only be followed by whitespace
   after the tag name, or have the opening tag be complete.
2019-07-25 00:22:09 +02:00
f4fb5bd943 Add type 7 HTML block tests 2019-07-25 00:20:59 +02:00
614c76be6f Drop pre 7.1
Drop pre 5.6 for constant arrays
Drop pre 7.1 for private constants
2019-07-25 00:18:29 +02:00
91b8bda46e Update test cache 2019-06-16 21:36:11 +01:00
5a12d4245f Allow unused class in tests 2019-06-16 21:35:13 +01:00
298b319d96 Fix malformed return type 2019-06-16 21:33:55 +01:00
7b1389b48b More specific return type 2019-06-16 21:32:37 +01:00
efcccb3256 Update commonmark cache 2019-04-10 07:02:52 +01:00
9eb6a02334 Limit recursion depth by configurable
Fixes https://github.com/erusev/parsedown/issues/681
2019-04-07 17:34:40 +01:00
b9b75dbcea Update commonmark cache 2019-04-07 16:38:46 +01:00
35d24d0b56 PHP < 7 patch 2019-04-07 16:38:46 +01:00
3f74fe8347 Port fix for https://github.com/erusev/parsedown/issues/699 into new
codebase
2019-04-07 16:38:46 +01:00
710a6ad250 Remove format error 2019-04-07 16:38:46 +01:00
9b9c9d83d2 Update CommonMark expect to pass 2019-04-07 16:38:46 +01:00
d32f5de2fe According to GFM spec these shouldn't infact be recognised 2019-04-07 16:38:45 +01:00
99525fdd76 Match GFM spec for extended autolinks
There is a small list of characters which may precede an autolink
2019-04-07 16:38:45 +01:00
de1e0b9361 Update README to match Travis breadth 2019-04-07 16:38:45 +01:00
c86757b6ae Use caret operator for PHP version
As suggested by @glensc
2019-04-07 16:38:20 +01:00
33522f0aa4 Normalise link reference lookups
Ref: https://github.com/erusev/parsedown/pull/104
2019-04-07 16:38:19 +01:00
7f6127f3f8 Ensure we cover all mutations in tests 2019-04-07 16:38:19 +01:00
4adbd0b8a7 Backtracking capable inlines better expressed by interface 2019-04-07 16:38:19 +01:00
4501a094db Remove copy-pasto 2019-04-07 16:38:19 +01:00
4a215f33d4 Trim in renderer 2019-04-07 16:38:19 +01:00
3ccd64a9a1 Expand public API of Components
Ref: https://github.com/erusev/parsedown/issues/694
2019-04-07 16:38:19 +01:00
3c0b528d54 Constructor shouldn't be part of public API 2019-04-07 16:38:18 +01:00
f83ee87902 Make this pattern a bit more reusable 2019-04-07 16:38:18 +01:00
747abe7600 Test indented code boundary when list advances 2019-04-07 16:38:18 +01:00
a396fccace No contexts implies everything being appended is a blank line
(of which where is at least one).
2019-04-07 16:38:18 +01:00
93e68056a8 Further improve tests 2019-04-07 16:38:18 +01:00
4fb6ac31a5 Improve tests 2019-04-07 16:38:18 +01:00
69f6754c4d These classes of mutations would be caught be static analysis
Infection doesn't support running Psalm, so removing
the mutations is next best solution.
2019-04-07 16:38:18 +01:00
d8d483bd6a Add some component level tests 2019-04-07 16:38:17 +01:00
c0792947a6 Remove unused methods 2019-04-07 16:38:17 +01:00
658129d847 Suppress instead of writing super verbose tests 2019-04-07 16:38:17 +01:00
65450f47cd Simplify 2019-04-07 16:38:17 +01:00
fc23ca5ef5 Remove more redundant checks 2019-04-07 16:38:17 +01:00