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
Aidan Woods
2757274854
Constant arrays to static vars for PHP 5.5
2019-04-07 16:38:00 +01:00
Aidan Woods
04816a9944
Adjust tests for new API
...
Remove tests that test old core and extension features
Comment out test for no markup independent of safe mode
2019-04-07 16:37:58 +01:00
Aidan Woods
e2c9b2fa2b
Remap text-level elements retreival
2019-04-07 16:37:58 +01:00
Aidan Woods
799ced66fa
Use Parsedown directly
...
Remove UrlsLinked adjustment--we'll have a better way
of doing that later
2019-04-07 16:37:58 +01:00
Aidan Woods
82a528711f
Fix commonmark test
2019-04-07 16:37:49 +01:00
Aidan Woods
8512e65a18
Standardise formatting
2019-04-07 16:37:49 +01:00
Aidan Woods
5ab8839d04
PHP 5.3 and 5.4 class name support
2019-04-07 16:37:47 +01:00
Aidan Woods
c429c47fee
Remove strict_types
for PHP 5.3 and 5.4 compat
2019-04-07 16:37:47 +01:00
Aidan Woods
88ab68fd0b
Refactor into namespaces for PSR-4
2019-04-07 16:37:47 +01:00
Emanuil Rusev
37416b5f07
simplify folder name
2014-04-28 21:53:34 +03:00
Emanuil Rusev
22affa124b
travis should be able to run tests in 5.2
2014-04-26 01:06:15 +03:00
Emanuil Rusev
cd1c030362
tests should use autoloader
2014-04-24 22:44:30 +03:00
Emanuil Rusev
6081954185
resolve #154
2014-04-18 00:19:22 +03:00
Emanuil Rusev
e5dc563804
replace tabs with spaces
2014-04-17 13:34:17 +03:00
Emanuil Rusev
5be4491943
make parser class more extensible
2014-04-17 10:59:35 +03:00
Emanuil Rusev
4e670129c8
simplify test class
2014-04-17 10:46:07 +03:00
Emanuil Rusev
9fd9262f16
implement tables
2014-02-23 18:55:34 +02:00
Emanuil Rusev
b8bd12f565
parser should be less dependent on compiler
2014-02-21 01:54:23 +02:00
Won-Kyu Park
446fead459
simple html cases
2014-02-17 23:33:56 +09:00
Emanuil Rusev
d29ff18299
resolve #92
2014-02-06 14:16:14 +02:00
Emanuil Rusev
95e9878fb0
improve tests
2014-02-06 02:37:09 +02:00
Emanuil Rusev
14ab6d46fe
resolve #82
2014-02-06 00:10:18 +02:00
Emanuil Rusev
548a6f7945
resolve #89
2014-02-05 14:03:43 +02:00
Carsten Brandt
45c01d4673
simplify testing and improved output
2014-02-03 11:23:54 +01:00
Emanuil Rusev
f5f1706e58
improve consistency of list item
2014-02-02 22:27:22 +02:00
Emanuil Rusev
a7510b97e7
dense list items that follow sparse ones should not be rendered as sparse ones
2014-01-31 03:03:52 +02:00
Carsten Brandt
d3c975d4d8
some edge case tests for the code tag
2014-01-29 15:36:41 +01:00
Emanuil Rusev
68f2871996
resolve #3
2014-01-22 21:28:29 +02:00
Emanuil Rusev
17e7e33847
name image title test
2014-01-22 21:28:29 +02:00
Emanuil Rusev
2a0700abda
resolve #61
2014-01-20 22:19:23 +02:00
Emanuil Rusev
f5dd3455f9
resolve #58
2014-01-19 00:52:07 +02:00
Emanuil Rusev
1017f22cdd
fix paragraph list
2014-01-18 16:45:39 +02:00
Emanuil Rusev
654dd74074
lines that start with inline html should not get parsed as block-level markup, should resolve #54 and #57
2014-01-18 16:45:39 +02:00
Emanuil Rusev
149b687ee7
improve tests
2014-01-17 01:25:41 +02:00
Emanuil Rusev
fd42f2e864
improve tests
2013-12-26 21:55:33 +02:00
Emanuil Rusev
c0b7155572
implement link titles
2013-12-26 21:53:48 +02:00
Emanuil Rusev
be366b63ea
improve parsing of emphasis
...
**strong** and *em* and **strong** and *em*
2013-12-24 23:40:12 +02:00
malorisdead
019a4af2af
Added ability to specify link titles to inline and reference links.
...
Fixed whitespace bug with reference link regex.
Updated tests.
2013-12-14 02:13:53 -05:00
Emanuil Rusev
51a08fad85
improve parsing of emphasis
2013-12-07 17:21:36 +02:00
Emanuil Rusev
85ad014f74
parse code span after recursive types to resolve #44
2013-12-06 01:43:55 +02:00
Emanuil Rusev
22336a1bcc
simplify special characters test
2013-12-06 00:45:26 +02:00
Emanuil Rusev
5b01915a63
interrupted list items should not add nonexistent empty lines
2013-12-06 00:15:17 +02:00
Emanuil Rusev
7bb70186c1
simplify test for em strong
2013-11-23 13:35:15 +02:00
Emanuil Rusev
3225c66863
***strong em** inside of em* should produce valid markup
2013-11-23 13:19:06 +02:00
Haralan Dobrev
849a89b121
Use UTF-8 encoding for htmlspecialchars. See #36 .
...
Prior to PHP 5.4.0 the default encoding for `htmlentities()`
and `htmlspecialchars` is "ISO-8859-1". For PHP 5.4+ is "UTF-8".
This ensures always the right encoding is used no matter the PHP version
and the locale settings.
2013-11-22 23:06:20 +02:00
Emanuil Rusev
ddc5b7e2dd
implement URL auto-linking
2013-11-22 00:20:45 +02:00
Emanuil Rusev
5a563008aa
implement GFM strikethrough
2013-11-21 13:39:00 +02:00
Emanuil Rusev
b6f795962f
resolve #21
2013-11-21 00:59:30 +02:00
Emanuil Rusev
d96f668c42
update test case to make it run on PHP 5.2
2013-11-18 22:29:15 +02:00
Emanuil Rusev
67b51794d8
implement fenced code block to resolve #2
2013-11-17 16:52:31 +02:00
Emanuil Rusev
30e436ec7d
simplify tests
2013-11-16 02:05:31 +02:00
Emanuil Rusev
a4fb0651d5
resolve #27
2013-11-13 01:07:39 +02:00
Haralan Dobrev
1f347e17eb
Allow multi-line emphasis. Fix #28 .
2013-11-12 19:22:17 +02:00
Emanuil Rusev
a37f5ff31e
improve tests
2013-11-10 10:44:52 +02:00
Emanuil Rusev
8e6f4cf7b8
leading spaces should not get trimmed
2013-11-09 22:23:56 +02:00
Emanuil Rusev
4403fe4d96
labels of reference links should be case insensitive
2013-11-08 21:59:26 +02:00
Emanuil Rusev
0e9202689e
escaping of "<" breaks span-level html
2013-11-05 21:40:33 +02:00
Emanuil Rusev
7249d02cff
code blocks get unwanted empty lines
2013-11-05 10:21:48 +02:00
Emanuil Rusev
b12973415f
parse link references as blocks to improve performance
2013-11-05 00:57:16 +02:00
Emanuil Rusev
6d113f47fb
rearrange block types to optimize performance
2013-11-04 09:28:50 +02:00
Emanuil Rusev
d4d3612710
escaping for special characters
2013-11-03 17:32:45 +02:00
Emanuil Rusev
2e314ad474
resolve #24
2013-11-02 21:42:55 +02:00
Emanuil
5dd40e7adf
add test for horizontal rule
2013-09-24 22:53:42 +03:00
Emanuil
b9808f23e0
setext underlines should not work on interrupted paragraphs
2013-09-24 22:36:24 +03:00
Emanuil
d306ee3db5
improve tests
2013-09-24 01:09:13 +03:00
Emanuil
e15241cb92
remove incomplete tests
2013-09-24 01:00:20 +03:00
Emanuil
bc27850c41
improve emphasis test
2013-09-03 00:15:25 +03:00
Emanuil
a94a45f955
reference_link test should reference md.png with a relative path
2013-09-02 22:12:43 +03:00
Emanuil
4af89c5087
reference links should be able to have their names on the next line
2013-08-31 22:27:38 +03:00
Emanuil
097ec5e8a5
test case should deal with \r characters
2013-08-31 20:11:48 +03:00
Emanuil
8ac52a2f30
resolve #17
2013-08-31 19:55:07 +03:00
Emanuil
609ad47c38
resolve #16
2013-07-26 00:08:52 +03:00
Emanuil
5aad1d42d2
inline links should work with images
2013-07-25 01:33:40 +03:00
hkdobrev
7ace421f6d
Better parsing of emphasis and strong elements
...
- Regex is based on original Perl regex.
- Added more tests.
2013-07-23 01:03:18 +03:00
Emanuil
99bf0d4bba
refactor test case
2013-07-22 00:19:11 +03:00
Emanuil
f29981d0a3
fix test case
2013-07-22 00:10:01 +03:00
Emanuil
85dd9fd965
migrate tests to phpunit
2013-07-21 23:14:30 +03:00
Emanuil
69de4c46d5
rename tests/ to data/
2013-07-21 18:46:37 +03:00
hkdobrev
66f9baf013
More tests for atx headings
...
Headings with the atx style support closing.
I have added more tests for all heading sizes, closing and closing different number of #s.
2013-07-20 09:53:17 +03:00