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

130 Commits

Author SHA1 Message Date
Aidan Woods
b9b75dbcea
Update commonmark cache 2019-04-07 16:38:46 +01:00
Aidan Woods
3f74fe8347
Port fix for https://github.com/erusev/parsedown/issues/699 into new
codebase
2019-04-07 16:38:46 +01:00
Aidan Woods
9b9c9d83d2
Update CommonMark expect to pass 2019-04-07 16:38:46 +01:00
Aidan Woods
d32f5de2fe
According to GFM spec these shouldn't infact be recognised 2019-04-07 16:38:45 +01:00
Aidan Woods
33522f0aa4
Normalise link reference lookups
Ref: https://github.com/erusev/parsedown/pull/104
2019-04-07 16:38:19 +01:00
Aidan Woods
7f6127f3f8
Ensure we cover all mutations in tests 2019-04-07 16:38:19 +01:00
Aidan Woods
3ccd64a9a1
Expand public API of Components
Ref: https://github.com/erusev/parsedown/issues/694
2019-04-07 16:38:19 +01:00
Aidan Woods
747abe7600
Test indented code boundary when list advances 2019-04-07 16:38:18 +01:00
Aidan Woods
93e68056a8
Further improve tests 2019-04-07 16:38:18 +01:00
Aidan Woods
4fb6ac31a5
Improve tests 2019-04-07 16:38:18 +01:00
Aidan Woods
d8d483bd6a
Add some component level tests 2019-04-07 16:38:17 +01:00
Aidan Woods
658129d847
Suppress instead of writing super verbose tests 2019-04-07 16:38:17 +01:00
Aidan Woods
dbe37bcb0e
Type check tests 2019-04-07 16:38:16 +01:00
Aidan Woods
6ac6b7f7f7
Test blockquote whitespace handling 2019-04-07 16:38:14 +01:00
Aidan Woods
c2973100e0
Fix whitespace trimming for soft and hard breaks 2019-04-07 16:38:14 +01:00
Aidan Woods
0626a83289
Test trimming doesn't occur when asymmetric 2019-04-07 16:38:14 +01:00
Aidan Woods
93650fb9b5
PHP 5.5 compat 2019-04-07 16:38:14 +01:00
Aidan Woods
9bf91d7183
Cache spec locally for 5 minutes 2019-04-07 16:38:13 +01:00
Aidan Woods
08c40afc16
Test against HTML block endings 2019-04-07 16:38:13 +01:00
Aidan Woods
14f8ff52e1
Test continuation of indented code blocks 2019-04-07 16:38:13 +01:00
Aidan Woods
54f2c4eb4c
Fix recovered spaces calculation 2019-04-07 16:38:12 +01:00
Aidan Woods
f2f7433dcf
Switch to CommonMarkStrict tests 2019-04-07 16:38:11 +01:00
Aidan Woods
a2bca78f7e
Fix whitespace errors 2019-04-07 16:38:11 +01:00
Aidan Woods
42d21a2413
Remove cached items no that longer exist in spec.txt 2019-04-07 16:38:10 +01:00
Aidan Woods
f47ba7aa34
Track whitespace left on blank lines to match CommonMark
Test changes copy pasted to match CommonMark reference parser
2019-04-07 16:38:10 +01:00
Aidan Woods
49dd8b113d
Make sure closing sequence is removed correctly 2019-04-07 16:38:10 +01:00
Aidan Woods
30763a0f38
HTML tags should have a name 2019-04-07 16:38:10 +01:00
Aidan Woods
3dd1326ded
Trim paragraph contents 2019-04-07 16:38:10 +01:00
Aidan Woods
0f55cd5b26
Permit empty links 2019-04-07 16:38:10 +01:00
Aidan Woods
5ada761532
Cache new passing tests 2019-04-07 16:38:10 +01:00
Aidan Woods
4fa89c1a80
Fix regex compilation 2019-04-07 16:38:09 +01:00
Aidan Woods
7b72eb6454
As best I can tell, these were passed accidently before 2019-04-07 16:38:09 +01:00
Aidan Woods
745db11d2f
Since SafeMode concerns output, spacing should still be parsed like markup 2019-04-07 16:38:09 +01:00
Aidan Woods
82d20d8ffe
Markup like CommonMark 2019-04-07 16:38:09 +01:00
Aidan Woods
7fd6e0bb31
Backslash escape like CommonMark 2019-04-07 16:38:09 +01:00
Aidan Woods
eab734b457
Match CommonMark's rendering a bit better 2019-04-07 16:38:08 +01:00
Aidan Woods
2e0ad27c5e
CommonMark escapes double-quotes 2019-04-07 16:38:08 +01:00
Daniel Rudolf
50e135cd4e
Update expect-to-pass CommonMark spec examples for f4e0234 2019-04-07 16:38:08 +01:00
Daniel Rudolf
0514997103
Add initial test/commonmark/ folder 2019-04-07 16:38:08 +01:00
Daniel Rudolf
4c0734d935
Sync phpunit data set and CommonMark spec example numbers 2019-04-07 16:38:07 +01:00
Daniel Rudolf
734b4fc3d7
Test Parsedown against cached expect-to-pass CommonMark spec examples
This test suite runs tests the same way as `test/CommonMarkTestWeak.php`, but uses a cached set of CommonMark spec examples in `test/commonmark/`. It is executed along with Parsedown's default test suite and runs various CommonMark spec examples, which are expected to pass. If they don't pass, the Parsedown build fails. The intention of this test suite is to make sure, that previously passed CommonMark spec examples don't fail due to unwanted side-effects of code changes.

You can re-create the `test/commonmark/` directory by executing the PHPUnit group `update`. The test suite will then run `test/CommonMarkTestWeak.php` and create files with the Markdown source and the resulting HTML markup of all passed tests. The command to execute looks like the following:

    $ phpunit --group update
2019-04-07 16:38:07 +01:00
Aidan Woods
cbe7b25b21
No markup can be achieved by removing the respective parsing Components 2019-04-07 16:38:07 +01:00
Aidan Woods
f0da746c7b
Remove reminder comment
urlsLinked(false) is replaced by customising to remove
the inline from InlineTypes configurable when initialising
Parsedown
2019-04-07 16:38:07 +01:00
Aidan Woods
19e21f2d1b
Remove test extensions 2019-04-07 16:38:06 +01:00
Aidan Woods
b89bd0e3c2
Add breaks configurable 2019-04-07 16:38:05 +01:00
Aidan Woods
8fe93f30ac
Add easy way to remove Components from InlineTyes and BlockTypes 2019-04-07 16:38:05 +01:00
Aidan Woods
9d97b8eb6a
We should be using strict mode in commonmark benchmark 2019-04-07 16:38:03 +01:00
Aidan Woods
bb424e606f
Improve indent handling by lists 2019-04-07 16:38:03 +01:00
Aidan Woods
fc37ad11ed
Tabs shouldn't break thematic breaks 2019-04-07 16:38:02 +01:00
Aidan Woods
4e9a0113c3
Thematic breaks can't have an indent of more than 3 2019-04-07 16:38:02 +01:00