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

17 Commits

Author SHA1 Message Date
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
4adbd0b8a7 Backtracking capable inlines better expressed by interface 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
3c0b528d54 Constructor shouldn't be part of public API 2019-04-07 16:38:18 +01:00
Aidan Woods
41fb6b0d43 Move url sanitisation out of Element class 2019-04-07 16:38:15 +01:00
Aidan Woods
0f55cd5b26 Permit empty links 2019-04-07 16:38:10 +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
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
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
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
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
6f5780abfd Improve Link API 2019-04-07 16:38:00 +01:00
Aidan Woods
dad0088adb Implement Link 2019-04-07 16:37:56 +01:00