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

1146 Commits

Author SHA1 Message Date
7c7d581601 Error level 1 instead of totallyTyped
Seems this is now the equivalent and sanctioned way to do this.
2022-05-21 22:31:09 +01:00
5cc84366cb Test on 8.1 2022-05-21 22:31:00 +01:00
6be43664fd Add additional explaination for the State object
Adds a small non-technical introduction to help with intuition, after
the object appears for the first time.
2022-05-21 22:26:39 +01:00
bf6cfe8af0 Show importing of Parsedown and State in example 2021-12-08 20:38:35 +00:00
6fdcfaa14a Add initial documentation
This isn't yet complete, but is a decent start
2021-12-08 20:38:35 +00:00
79effc4ae2 Ignore invalid docblock in tests 2021-12-08 20:35:46 +00:00
f77cb47528 Remove unnecessary cast 2021-12-08 20:32:09 +00:00
95c9cce7de Update php-cs-fixer 2021-10-16 00:45:18 +01:00
9749ef7a8e Slightly nicer to allow construction from StateBearer 2021-10-15 23:23:14 +01:00
638079a3da Slightly nicer method name
Normally this name might be too vague for an interface, but implementing
this interface is a fairly special use case. We can expect dedicated
types here (so method name unlikely to be an issue).
2021-10-15 23:20:20 +01:00
421a2393d0 StateBearer must be constructable from State 2021-10-15 23:18:08 +01:00
4af22ec41a Allow substitution of blocks and inlines 2021-10-15 19:25:47 +01:00
4553515e8e Relax mutation tolerance 2021-10-13 22:12:06 +01:00
8ce88c1b36 Off by 1 2021-10-13 19:55:23 +01:00
b73fe2e9ec Apply correct state 2021-10-13 19:52:27 +01:00
7b0a9cda04 Transformations must return transformable renderables 2021-10-13 19:46:53 +01:00
05a47e7083 Complete docblock 2021-10-13 19:35:21 +01:00
e9dec33dc6 Replacing all function to TransformableRenderable 2021-10-13 19:26:07 +01:00
a9f41548d3 adding method for Container 2021-10-13 19:02:52 +01:00
71d9263664 Pass State to render stack closure 2021-10-13 18:50:04 +01:00
8fc49f6b0a Add TransformableRenderable capability 2021-10-12 21:58:24 +01:00
a48c451d6c Restrict autolinks to https 2021-10-12 18:21:17 +01:00
2ea4bece92 Return statebearer instead of state 2021-10-12 18:12:00 +01:00
efaf20d005 Minor refactor to use type hints 2021-10-12 18:05:58 +01:00
0f27f2e842 Add initState to tests 2021-10-12 18:04:36 +01:00
c773305bc1 Add RenderStack
This is a special configurable that can be used to alter the
Renderable[] AST before output.
2021-10-12 00:06:51 +01:00
7c2681be19 Remove travis 2021-10-11 23:12:06 +01:00
9d5af12971 Run both commonmark tests 2021-10-11 20:49:58 +01:00
58bb815870 Dev flag 2021-10-11 20:48:31 +01:00
de06199f4e Support old phpunit, remove lock file 2021-10-11 20:47:21 +01:00
f396d49a4c Use static analysis plugin for infection 2021-10-11 20:43:25 +01:00
7f11869f65 Remove infection for unit tests 2021-10-11 20:33:25 +01:00
3472b9bd3f GitHub Actions 2021-10-11 20:26:42 +01:00
7d1b9ca562 Better autolinks
This doesn't follow gfm spec yet, work lifted from my code over
at
8505e2737e/src/Parsers/GitHubFlavor/Inlines/AutoLink.php

Fixes #505
Fixes #717
2021-10-11 20:09:57 +01:00
cc5614bc5c Test 8.0 in travis 2021-10-11 19:25:58 +01:00
ca16d7573d Fix psalm errors 2021-10-11 19:23:44 +01:00
98aab22002 Update dependencies 2021-10-11 19:22:23 +01:00
9f6112e70a Ignore phpunit result cache 2021-10-11 19:21:21 +01:00
0c5e8c152e Merge pull request #767 from aidantwoods/enhancement/header-slug
Create ID's for Header elements so they can be referenced in anchor tags
2020-05-10 14:41:15 +01:00
8764512c23 Add SlugRegister so IDs are not duplicated 2020-05-10 14:32:01 +01:00
4e99e29d28 Trim leading and trailing hyphens from slug 2020-05-10 14:32:00 +01:00
d8bf07535c Strip superscripts and divisions from eventual slug
As suggested by @Ayesh

Co-authored-by: Ayesh Karunaratne <ayesh@ayesh.me>
2020-05-10 14:32:00 +01:00
e332b4710a Add HeaderSlug configurable
Adds HeaderSlug configurable, with the option for the slug function
to be customised.

Co-authored-by: netniV <netniv@hotmail.com>
2020-05-10 14:31:55 +01:00
74df602863 Merge pull request #768 from aidantwoods/feature/mutable-configurable
Add mutable configurable
2020-05-10 14:30:15 +01:00
c835535176 Implement DefinitionBook as MutableConfigurable
This is a slightly more correct implementation, but perhaps not worth
the headache.
2020-05-10 14:19:05 +01:00
0ef406e6d2 Add MutableConfigurable
Hopefully I do not regret this...
2020-05-10 14:18:51 +01:00
8e8d1dac21 Resolve dependencies when running unit tests 2020-05-05 22:20:11 +01:00
bc018e1d00 Remove 'matrix' key 2020-05-05 22:19:56 +01:00
dbb929fff7 Commit lock file so static analysis results are stable 2020-05-05 22:19:14 +01:00
836c028aa0 Add flag to get type-coverage 2020-01-26 13:09:19 +00:00