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
fc23ca5ef5
Remove more redundant checks
2019-04-07 16:38:17 +01:00
Aidan Woods
36fac49ed8
Remove redundant checks
...
These don't appear to have a measurable positive impact on performance.
2019-04-07 16:38:15 +01:00
Aidan Woods
117912c373
Substr over indexing string
2019-04-07 16:38:12 +01:00
Aidan Woods
4563ee592d
Don't assume marker type is correct
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
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
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
2757274854
Constant arrays to static vars for PHP 5.5
2019-04-07 16:38:00 +01:00
Aidan Woods
164a39f3e9
Implement Emphasis
2019-04-07 16:37:56 +01:00