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
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
62615f4fc5
Allow empty code spans
2019-04-07 16:38:08 +01:00
Aidan Woods
4563ee592d
Don't assume marker type is correct
2019-04-07 16:38:07 +01:00
Aidan Woods
aab56cf8cc
Fix strange formatting
2019-04-07 16:38:07 +01:00
Aidan Woods
d6f526d80f
Return state after block parse instead of mutating the instance copy
2019-04-07 16:38:06 +01:00
Aidan Woods
b728f254b7
Ensure Url parsing is removed all the way down (not just edge)
2019-04-07 16:38:06 +01:00
Aidan Woods
d733c262c2
Cleanup logical operators
2019-04-07 16:38:06 +01:00
Aidan Woods
11da347aa1
We don't need to pass a Parsedown instance down
...
Since Parsedown is instancible from State, we only
need to carry that down.
2019-04-07 16:38:05 +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
eb90905d27
Default value is intrinsic to a configurable, we can just always
...
retrieve that.
2019-04-07 16:38:04 +01:00
Aidan Woods
1fd2e14b72
Add hard and soft breaks
2019-04-07 16:38:04 +01:00
Aidan Woods
00821bd072
Don't remove right #'s too early (before dealing with whitesapce)
2019-04-07 16:38:03 +01:00
Aidan Woods
b8cdc6e9a5
Remove closing # sequence from header
2019-04-07 16:38:03 +01:00
Aidan Woods
67231cbae1
Tabs are allowed after header delimiter
2019-04-07 16:38:03 +01:00
Aidan Woods
81a2050608
Headers can't start with more than three spaces
2019-04-07 16:38:03 +01:00
Aidan Woods
3d41f270c2
Better name for testing safe mode and strict mode state
...
Add a nice named constructor
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
51c3d9d445
Make it clearer this is one backslash character
2019-04-07 16:38:02 +01:00
Aidan Woods
74bba0b2fa
rtrim non hard breaking lines
2019-04-07 16:38:02 +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
82c981657d
Require Inlines to provide a best plaintext rendering
...
This allows markdown to be parsed "inside" the alt
attribute of an image, and then the best plaintext
can be used as the rest.
This improves CommonMark compliance.
2019-04-07 16:38:02 +01:00
Aidan Woods
c9388cb5c2
Make use of line name instead of lineElements
2019-04-07 16:38:01 +01:00
Aidan Woods
6add0ea877
Remove useless variables
2019-04-07 16:38:00 +01:00
Aidan Woods
dac6b01d1a
Remove meaningless interrupt check
...
Interrupted implies previousEmptyLines > 0 in incoming Context
2019-04-07 16:38:00 +01:00
Aidan Woods
6f5780abfd
Improve Link API
2019-04-07 16:38:00 +01:00
Aidan Woods
2757274854
Constant arrays to static vars for PHP 5.5
2019-04-07 16:38:00 +01:00
Aidan Woods
e4ed4da626
More keyword related fixes for pre PHP 7
2019-04-07 16:38:00 +01:00
Aidan Woods
f8003dcded
Remove debug lines
2019-04-07 16:37:59 +01:00
Aidan Woods
a286033f52
Implement UrlTag
2019-04-07 16:37:57 +01:00
Aidan Woods
53bb9a6467
Implement Url
2019-04-07 16:37:57 +01:00
Aidan Woods
db1d0a4999
Implement Strikethrough
2019-04-07 16:37:57 +01:00
Aidan Woods
f256352f53
Implement SpecialCharacter
2019-04-07 16:37:57 +01:00
Aidan Woods
778eacd081
Implement Markup
2019-04-07 16:37:57 +01:00
Aidan Woods
5e8905c455
Implement Image
2019-04-07 16:37:57 +01:00
Aidan Woods
dad0088adb
Implement Link
2019-04-07 16:37:56 +01:00
Aidan Woods
79a38a1ebb
Implement EscapeSequence
2019-04-07 16:37:56 +01:00
Aidan Woods
164a39f3e9
Implement Emphasis
2019-04-07 16:37:56 +01:00
Aidan Woods
f2a3a2fb08
Implement Email
2019-04-07 16:37:56 +01:00
Aidan Woods
497045d25b
Implement Code
2019-04-07 16:37:56 +01:00
Aidan Woods
760945008b
Implement plaintext
2019-04-07 16:37:56 +01:00
Aidan Woods
25cf5a1729
Add some traits for common Inline implementations
2019-04-07 16:37:55 +01:00
Aidan Woods
18e239fba1
Implement Paragraph
2019-04-07 16:37:55 +01:00
Aidan Woods
b53971e656
Implement Table
2019-04-07 16:37:55 +01:00
Aidan Woods
0c730e0dc5
Implement Reference
2019-04-07 16:37:55 +01:00
Aidan Woods
565c8dd3cc
Implement IndentedCode
2019-04-07 16:37:55 +01:00