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

Commit Graph

  • 35d24d0b56 PHP < 7 patch Aidan Woods 2019-04-06 18:30:57 +01:00
  • 3f74fe8347 Port fix for https://github.com/erusev/parsedown/issues/699 into new codebase Aidan Woods 2019-04-06 18:15:28 +01:00
  • 710a6ad250 Remove format error Aidan Woods 2019-04-06 18:10:47 +01:00
  • 9b9c9d83d2 Update CommonMark expect to pass Aidan Woods 2019-03-26 21:41:25 +00:00
  • d32f5de2fe According to GFM spec these shouldn't infact be recognised Aidan Woods 2019-03-26 21:40:02 +00:00
  • 99525fdd76 Match GFM spec for extended autolinks There is a small list of characters which may precede an autolink Aidan Woods 2019-03-26 21:38:21 +00:00
  • de1e0b9361 Update README to match Travis breadth Aidan Woods 2019-03-14 18:59:31 +00:00
  • c86757b6ae Use caret operator for PHP version As suggested by @glensc Aidan Woods 2019-03-10 20:12:58 +00:00
  • 33522f0aa4 Normalise link reference lookups Ref: https://github.com/erusev/parsedown/pull/104 Aidan Woods 2019-02-22 16:10:40 +00:00
  • 7f6127f3f8 Ensure we cover all mutations in tests Aidan Woods 2019-02-22 15:30:00 +00:00
  • 4adbd0b8a7 Backtracking capable inlines better expressed by interface Aidan Woods 2019-02-22 14:56:22 +00:00
  • 4501a094db Remove copy-pasto Aidan Woods 2019-02-17 17:54:28 +00:00
  • 4a215f33d4 Trim in renderer Aidan Woods 2019-02-16 21:10:45 +00:00
  • 3ccd64a9a1 Expand public API of Components Ref: https://github.com/erusev/parsedown/issues/694 Aidan Woods 2019-02-16 20:31:20 +00:00
  • 3c0b528d54 Constructor shouldn't be part of public API Aidan Woods 2019-02-16 12:37:22 +00:00
  • f83ee87902 Make this pattern a bit more reusable Aidan Woods 2019-02-15 23:34:58 +00:00
  • 747abe7600 Test indented code boundary when list advances Aidan Woods 2019-02-15 22:22:06 +00:00
  • a396fccace No contexts implies everything being appended is a blank line (of which where is at least one). Aidan Woods 2019-02-11 21:18:08 +00:00
  • 93e68056a8 Further improve tests Aidan Woods 2019-02-11 21:17:45 +00:00
  • 4fb6ac31a5 Improve tests Aidan Woods 2019-02-11 20:36:55 +00: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. Aidan Woods 2019-02-11 00:42:19 +00:00
  • d8d483bd6a Add some component level tests Aidan Woods 2019-02-11 00:12:19 +00:00
  • c0792947a6 Remove unused methods Aidan Woods 2019-02-11 00:11:41 +00:00
  • 658129d847 Suppress instead of writing super verbose tests Aidan Woods 2019-02-11 00:10:58 +00:00
  • 65450f47cd Simplify Aidan Woods 2019-02-10 23:10:57 +00:00
  • fc23ca5ef5 Remove more redundant checks Aidan Woods 2019-02-10 23:07:21 +00:00
  • 015e476f3e Remove unused import Aidan Woods 2019-02-10 22:56:57 +00:00
  • 289b641a42 Remove inaccurate comment Aidan Woods 2019-02-10 22:52:26 +00:00
  • 147a87a4f3 These are self-explainitory Aidan Woods 2019-02-10 22:52:02 +00:00
  • b90efc69ec Ensure marker is properly contained in the Inline Aidan Woods 2019-02-10 22:50:34 +00:00
  • dbe37bcb0e Type check tests Aidan Woods 2019-02-10 22:38:34 +00:00
  • 30613b2430 Ensure $startPosition is positive Aidan Woods 2019-02-10 22:35:27 +00:00
  • cef5b16ae0 Update excludes Aidan Woods 2019-02-10 19:35:31 +00:00
  • 5ecfc42728 Early exit if found Aidan Woods 2019-02-10 19:27:14 +00:00
  • 3bb24c20a6 Assert marker is correct for hard and soft breaks Aidan Woods 2019-02-10 18:51:23 +00:00
  • 369aea5d8d Collect State from continuable state updating block on advance Aidan Woods 2019-02-10 18:34:36 +00:00
  • 2b79d599fb Require State to build and advance blocks Aidan Woods 2019-02-10 18:32:28 +00:00
  • 8fd3c77109 Tighten requirements Aidan Woods 2019-02-10 18:09:08 +00:00
  • df703dcb0e Missed one Aidan Woods 2019-02-10 18:02:48 +00:00
  • 36fac49ed8 Remove redundant checks Aidan Woods 2019-02-10 17:49:26 +00:00
  • 41fb6b0d43 Move url sanitisation out of Element class Aidan Woods 2019-02-10 17:24:00 +00:00
  • a681cf631c Acquisition capable blocks as an interface Aidan Woods 2019-02-10 16:33:10 +00:00
  • 6ac6b7f7f7 Test blockquote whitespace handling Aidan Woods 2019-02-03 16:06:46 +00:00
  • 3c6578dd4b Remove deleted stage Aidan Woods 2019-02-03 15:41:42 +00:00
  • c2973100e0 Fix whitespace trimming for soft and hard breaks Aidan Woods 2019-02-03 01:25:01 +00:00
  • 0626a83289 Test trimming doesn't occur when asymmetric Aidan Woods 2019-02-03 01:11:35 +00:00
  • 2efae741bb Simplify expression Aidan Woods 2019-02-03 01:05:06 +00:00
  • 93650fb9b5 PHP 5.5 compat Aidan Woods 2019-02-03 01:03:45 +00:00
  • 9bf91d7183 Cache spec locally for 5 minutes Aidan Woods 2019-02-03 00:57:23 +00:00
  • f95c3bb154 --show-mutations over cat infection.log Aidan Woods 2019-02-03 00:55:39 +00:00
  • 660c2e43a3 Paragraph would end itself and new one must start for header row to exist Aidan Woods 2019-02-03 00:54:44 +00:00
  • d9792bb12c Ensure markers are checked when beginning blocks Aidan Woods 2019-02-03 00:20:54 +00:00
  • 08c40afc16 Test against HTML block endings Aidan Woods 2019-02-03 00:07:59 +00:00
  • 14f8ff52e1 Test continuation of indented code blocks Aidan Woods 2019-02-02 23:37:23 +00:00
  • c310625b93 Length not necessary Aidan Woods 2019-02-02 23:34:54 +00:00
  • 811991b27d Run mutation tests after unit tests on supported platforms Aidan Woods 2019-02-02 23:18:08 +00:00
  • d29f900374 Nightly doesn't have xdebug Aidan Woods 2019-02-02 21:22:05 +00:00
  • efe324c08b Add mutation testing Aidan Woods 2019-02-02 21:09:56 +00:00
  • 54f2c4eb4c Fix recovered spaces calculation Aidan Woods 2019-02-02 21:07:53 +00:00
  • 117912c373 Substr over indexing string Aidan Woods 2019-02-02 21:07:12 +00:00
  • 63a97a926b Remove leftover hackyness Aidan Woods 2019-01-31 17:01:40 +00:00
  • cb211a88a8 PHP < 7 compat Aidan Woods 2019-01-30 20:04:47 +00:00
  • c49d40027f Add StateBearer which can carry state Aidan Woods 2019-01-30 19:53:49 +00:00
  • 4dee1e9a55 Add convenience instance-based initialisers Aidan Woods 2019-01-30 19:52:38 +00:00
  • dbc0efeec0 Require integer-keyed lists so that array_merge result is predictable Aidan Woods 2019-01-30 19:39:00 +00:00
  • fe1355ef9e Test strict and weak in Travis Aidan Woods 2019-01-28 20:41:56 +00:00
  • f2f7433dcf Switch to CommonMarkStrict tests Aidan Woods 2019-01-28 20:35:34 +00:00
  • a2bca78f7e Fix whitespace errors Aidan Woods 2019-01-28 20:30:56 +00:00
  • 42d21a2413 Remove cached items no that longer exist in spec.txt Aidan Woods 2019-01-28 20:15:11 +00:00
  • f47ba7aa34 Track whitespace left on blank lines to match CommonMark Test changes copy pasted to match CommonMark reference parser Aidan Woods 2019-01-28 19:13:57 +00:00
  • 49dd8b113d Make sure closing sequence is removed correctly Aidan Woods 2019-01-27 21:12:23 +00:00
  • 30763a0f38 HTML tags should have a name Aidan Woods 2019-01-27 20:56:57 +00:00
  • 3dd1326ded Trim paragraph contents Aidan Woods 2019-01-27 20:54:09 +00:00
  • 0f55cd5b26 Permit empty links Aidan Woods 2019-01-27 20:53:11 +00:00
  • 5ada761532 Cache new passing tests Aidan Woods 2019-01-27 19:47:05 +00:00
  • 4fa89c1a80 Fix regex compilation Aidan Woods 2019-01-27 19:46:38 +00:00
  • 7b72eb6454 As best I can tell, these were passed accidently before Aidan Woods 2019-01-27 19:43:18 +00:00
  • 745db11d2f Since SafeMode concerns output, spacing should still be parsed like markup Aidan Woods 2019-01-27 19:40:13 +00:00
  • 82d20d8ffe Markup like CommonMark Aidan Woods 2019-01-27 19:38:07 +00:00
  • 7fd6e0bb31 Backslash escape like CommonMark Aidan Woods 2019-01-27 18:41:06 +00:00
  • eab734b457 Match CommonMark's rendering a bit better Aidan Woods 2019-01-27 18:08:57 +00:00
  • 2e0ad27c5e CommonMark escapes double-quotes Aidan Woods 2019-01-27 18:02:32 +00:00
  • d6c97ee111 Make escaping slightly less aggressive Aidan Woods 2019-01-27 17:17:04 +00:00
  • 62615f4fc5 Allow empty code spans Aidan Woods 2019-01-27 17:10:36 +00:00
  • 50e135cd4e Update expect-to-pass CommonMark spec examples for f4e0234 Daniel Rudolf 2016-10-13 22:32:56 +02:00
  • 0514997103 Add initial test/commonmark/ folder Daniel Rudolf 2016-10-13 22:31:52 +02:00
  • 4c0734d935 Sync phpunit data set and CommonMark spec example numbers Daniel Rudolf 2016-10-13 22:30:47 +02:00
  • 734b4fc3d7 Test Parsedown against cached expect-to-pass CommonMark spec examples Daniel Rudolf 2016-10-12 03:06:11 +02:00
  • 4563ee592d Don't assume marker type is correct Aidan Woods 2019-01-27 16:54:04 +00:00
  • cbe7b25b21 No markup can be achieved by removing the respective parsing Components Aidan Woods 2019-01-26 21:48:05 +00:00
  • f0da746c7b Remove reminder comment urlsLinked(false) is replaced by customising to remove the inline from InlineTypes configurable when initialising Parsedown Aidan Woods 2019-01-26 21:20:59 +00:00
  • aab56cf8cc Fix strange formatting Aidan Woods 2019-01-26 20:54:37 +00:00
  • 48c0c34470 Caching for initial configurable values removes need to seed state Aidan Woods 2019-01-26 20:38:57 +00:00
  • bc3c1544c5 Don't special case invisible If something has no html, it doesn't need to have a newline Aidan Woods 2019-01-26 20:38:06 +00:00
  • d6f526d80f Return state after block parse instead of mutating the instance copy Aidan Woods 2019-01-26 20:37:02 +00:00
  • b728f254b7 Ensure Url parsing is removed all the way down (not just edge) Aidan Woods 2019-01-26 20:12:05 +00:00
  • ebde35cf0d Add some style cleanup rules already followed Aidan Woods 2019-01-26 14:54:58 +00:00
  • d733c262c2 Cleanup logical operators Aidan Woods 2019-01-26 14:51:05 +00:00
  • 19e21f2d1b Remove test extensions Aidan Woods 2019-01-25 22:28:08 +00:00
  • 11da347aa1 We don't need to pass a Parsedown instance down Aidan Woods 2019-01-25 21:39:37 +00:00