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

Commit Graph

  • b89bd0e3c2 Add breaks configurable Aidan Woods 2019-01-25 21:20:58 +00:00
  • fce09a702a Put reused code in a trait so boolean configurables are easy to make Aidan Woods 2019-01-25 21:18:33 +00:00
  • 8fe93f30ac Add easy way to remove Components from InlineTyes and BlockTypes Aidan Woods 2019-01-25 20:54:25 +00:00
  • 9f9ef78662 This should be slightly faster Merge would honour changes, and removals are equivalent to changing to default value. Aidan Woods 2019-01-25 20:23:04 +00:00
  • 57632f38fb More meaningful method name Aidan Woods 2019-01-25 20:19:18 +00:00
  • 5e7fb61879 More keyword fixes for pre-PHP7 Aidan Woods 2019-01-25 20:02:04 +00:00
  • 2618509cc6 Now the class is a bit shorter we can remove these makeshift dividers Aidan Woods 2019-01-25 19:52:52 +00:00
  • fce4633ff9 Inlines and Blocks as Configurables Aidan Woods 2019-01-25 19:49:18 +00:00
  • eb90905d27 Default value is intrinsic to a configurable, we can just always retrieve that. Aidan Woods 2019-01-25 19:48:03 +00:00
  • 5a50930cb0 Allow inlines to backtrack into characters that were suspected as inlines but ruled out This is required for backslash escaped Hard breaks to work: Parsedown first checks to see if these are escape sequences, however when they are ruled out they should not be assumed to be plaintext since a later inline (Hardbreak) may backtrack into these unconsumed characters. Aidan Woods 2019-01-25 19:02:30 +00:00
  • 1fd2e14b72 Add hard and soft breaks Aidan Woods 2019-01-25 18:52:49 +00:00
  • 714ae50211 Text variable isn't very useful inside the loop Aidan Woods 2019-01-24 22:26:26 +00:00
  • 14b3761687 Produce Blocks before converting to StateRenderables (As we do with Inlines) Aidan Woods 2019-01-24 21:56:20 +00:00
  • 00821bd072 Don't remove right #'s too early (before dealing with whitesapce) Aidan Woods 2019-01-22 23:24:13 +00:00
  • b8cdc6e9a5 Remove closing # sequence from header Aidan Woods 2019-01-22 23:18:09 +00:00
  • 9d97b8eb6a We should be using strict mode in commonmark benchmark Aidan Woods 2019-01-22 21:35:13 +00:00
  • 67231cbae1 Tabs are allowed after header delimiter Aidan Woods 2019-01-22 21:34:46 +00:00
  • 81a2050608 Headers can't start with more than three spaces Aidan Woods 2019-01-22 21:20:04 +00:00
  • 3d41f270c2 Better name for testing safe mode and strict mode state Add a nice named constructor Aidan Woods 2019-01-22 21:19:26 +00:00
  • bb424e606f Improve indent handling by lists Aidan Woods 2019-01-22 20:52:12 +00:00
  • 51c3d9d445 Make it clearer this is one backslash character Aidan Woods 2019-01-22 20:51:09 +00:00
  • 74bba0b2fa rtrim non hard breaking lines Aidan Woods 2019-01-22 20:50:11 +00:00
  • fc37ad11ed Tabs shouldn't break thematic breaks Aidan Woods 2019-01-22 19:28:12 +00:00
  • 4e9a0113c3 Thematic breaks can't have an indent of more than 3 Aidan Woods 2019-01-22 19:23:05 +00:00
  • 96d8a1f18c Add dead code test to composer test script Aidan Woods 2019-01-22 19:13:07 +00:00
  • 82c981657d Require Inlines to provide a best plaintext rendering Aidan Woods 2019-01-22 19:06:26 +00:00
  • 576a2c4519 Generalise line parsing to return Inlines before applying state Aidan Woods 2019-01-22 19:04:45 +00:00
  • 083ad582c7 State management Aidan Woods 2019-01-21 18:45:12 +00:00
  • c9388cb5c2 Make use of line name instead of lineElements Aidan Woods 2019-01-21 18:44:19 +00:00
  • bb8a16ad81 Remove useless line method Aidan Woods 2019-01-21 18:43:16 +00:00
  • 2cfd05a00e Test for dead code in travis Aidan Woods 2019-01-21 18:21:34 +00:00
  • 7f526c07a0 Indent offset is encompassed in Lines object Aidan Woods 2019-01-21 18:19:43 +00:00
  • 366600034c This isn't used and is derivable from the indent Aidan Woods 2019-01-21 18:18:54 +00:00
  • 6add0ea877 Remove useless variables Aidan Woods 2019-01-21 18:18:35 +00:00
  • dac6b01d1a Remove meaningless interrupt check Interrupted implies previousEmptyLines > 0 in incoming Context Aidan Woods 2019-01-21 18:09:27 +00:00
  • 6f5780abfd Improve Link API Aidan Woods 2019-01-21 18:00:02 +00:00
  • 2757274854 Constant arrays to static vars for PHP 5.5 Aidan Woods 2019-01-20 19:06:46 +00:00
  • 37895448ba Fix PHP 5.6 bug Aidan Woods 2019-01-20 19:03:57 +00:00
  • 6f1bc7db14 Fix pre PHP7 closure-as-property closure syntax Aidan Woods 2019-01-20 15:22:14 +00:00
  • e4ed4da626 More keyword related fixes for pre PHP 7 Aidan Woods 2019-01-20 15:14:57 +00:00
  • 351a68a14c Remove some return type hints that I missed Aidan Woods 2019-01-20 15:05:57 +00:00
  • a9aa7e7aae Test on PHP 5.5 and 5.6 Aidan Woods 2019-01-20 14:56:05 +00:00
  • f8003dcded Remove debug lines Aidan Woods 2019-01-20 03:21:38 +00:00
  • ca008872ba Use latest PHP on non-unit test build staged Aidan Woods 2019-01-20 03:16:36 +00:00
  • 7188f49a71 7.3 was released, so make failure blocking Aidan Woods 2019-01-20 03:12:48 +00:00
  • b3608829e5 Calling static functions on metatype class string is >=PHP7 only 🤷‍♂️ Aidan Woods 2019-01-20 03:11:34 +00:00
  • f420fad41f Remove ignore statement for core class :) Aidan Woods 2019-01-20 03:00:13 +00:00
  • f58845c480 Bump Psalm version for new static analysis features Aidan Woods 2019-01-20 02:59:20 +00:00
  • 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 Aidan Woods 2019-01-20 02:56:19 +00:00
  • e2c9b2fa2b Remap text-level elements retreival Aidan Woods 2019-01-20 02:55:12 +00:00
  • 799ced66fa Use Parsedown directly Aidan Woods 2019-01-20 02:52:46 +00:00
  • e6e24a8d0d Rewrite to use new internals Aidan Woods 2019-01-20 02:44:34 +00:00
  • 36cfb21908 Remove no longer needed parts of core class Aidan Woods 2019-01-20 02:44:20 +00:00
  • dbdbda52a8 Make Parsedown non-extendable and remove comment header Aidan Woods 2019-01-20 02:39:49 +00:00
  • 114eb0bc5b Add required imports Aidan Woods 2019-01-20 02:39:31 +00:00
  • a286033f52 Implement UrlTag Aidan Woods 2019-01-20 02:37:40 +00:00
  • 53bb9a6467 Implement Url Aidan Woods 2019-01-20 02:37:21 +00:00
  • db1d0a4999 Implement Strikethrough Aidan Woods 2019-01-20 02:36:55 +00:00
  • f256352f53 Implement SpecialCharacter Aidan Woods 2019-01-20 02:36:32 +00:00
  • 778eacd081 Implement Markup Aidan Woods 2019-01-20 02:36:11 +00:00
  • 5e8905c455 Implement Image Aidan Woods 2019-01-20 02:35:51 +00:00
  • dad0088adb Implement Link Aidan Woods 2019-01-20 02:35:32 +00:00
  • 79a38a1ebb Implement EscapeSequence Aidan Woods 2019-01-20 02:35:03 +00:00
  • 164a39f3e9 Implement Emphasis Aidan Woods 2019-01-20 02:34:41 +00:00
  • f2a3a2fb08 Implement Email Aidan Woods 2019-01-20 02:34:19 +00:00
  • 497045d25b Implement Code Aidan Woods 2019-01-20 02:33:45 +00:00
  • 760945008b Implement plaintext Aidan Woods 2019-01-20 02:33:14 +00:00
  • 25cf5a1729 Add some traits for common Inline implementations Aidan Woods 2019-01-20 02:32:17 +00:00
  • 18e239fba1 Implement Paragraph Aidan Woods 2019-01-20 02:31:18 +00:00
  • b53971e656 Implement Table Aidan Woods 2019-01-20 02:30:50 +00:00
  • 0c730e0dc5 Implement Reference Aidan Woods 2019-01-20 02:30:12 +00:00
  • 565c8dd3cc Implement IndentedCode Aidan Woods 2019-01-20 02:29:40 +00:00
  • ee094cb397 Implement Markup Aidan Woods 2019-01-20 02:29:05 +00:00
  • edc004f503 Implement SetextHeader Aidan Woods 2019-01-20 02:28:35 +00:00
  • af97e99b39 Implement Rule Aidan Woods 2019-01-20 02:28:17 +00:00
  • a95bc60c30 Implement List Aidan Woods 2019-01-20 02:27:48 +00:00
  • 07c2566042 Implement Header Aidan Woods 2019-01-20 02:27:10 +00:00
  • 57c6350184 Implement FencedCode Aidan Woods 2019-01-20 02:26:41 +00:00
  • 194c916c6a Implement Comment Aidan Woods 2019-01-20 02:26:03 +00:00
  • c50deda690 Implement BlockQuote Aidan Woods 2019-01-20 02:25:04 +00:00
  • 3094329950 Add traits to provide common block implementations Aidan Woods 2019-01-20 02:24:04 +00:00
  • 74a855946d Add some more exotic type specialisations of block Aidan Woods 2019-01-20 02:22:56 +00:00
  • c17868cac8 Basic block and inline definitions Aidan Woods 2019-01-20 02:22:25 +00:00
  • 5a00cb7f07 Define a basic component Aidan Woods 2019-01-20 02:21:56 +00:00
  • db657952d1 Add DefinitionBook configurable to replace definition data Aidan Woods 2019-01-20 02:21:20 +00:00
  • c55dbb0d3f Add safe mode and strict mode configurables Aidan Woods 2019-01-20 02:18:43 +00:00
  • 072f91df47 Add some useful renderables Aidan Woods 2019-01-20 02:18:08 +00:00
  • c852b487b4 Expose text string backing Aidan Woods 2019-01-20 02:17:41 +00:00
  • 00835c5101 Adjustments to rendering spacing Aidan Woods 2019-01-20 02:16:40 +00:00
  • a971e5aa54 Put element related sanitisation and data in a centralised location Aidan Woods 2019-01-20 02:16:15 +00:00
  • 23cfbd153c Add canonical state renderable to provide default implementation for renderables to be trivially state renderable Aidan Woods 2019-01-20 02:15:07 +00:00
  • 23560bfa33 Add handler so closures can implement state renderable via the wrapper Aidan Woods 2019-01-20 02:13:20 +00:00
  • 1f06b47e6c Add configurable and state Aidan Woods 2019-01-20 02:12:46 +00:00
  • 7746c9df06 Add state renderable -- all renderables are state renderables Aidan Woods 2019-01-20 02:11:09 +00:00
  • dcc5ea0c9b Add Excerpt class Aidan Woods 2019-01-20 02:10:22 +00:00
  • 7ef8b30043 Capitalisation Aidan Woods 2019-01-20 02:09:54 +00:00
  • deaf0682b5 Make tab shortage function public Aidan Woods 2019-01-20 02:09:21 +00:00
  • 3a0db641aa Test format before units Aidan Woods 2018-12-11 22:56:38 +00:00
  • 215953334e Update psalm version for bugfixes Aidan Woods 2018-12-11 22:56:15 +00:00
  • 1541859e0e PHP < 7 compat for Html renderables Aidan Woods 2018-12-05 17:13:51 +01:00