-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
erusev/parsedown included in roave/security-advisories #9
Comments
Oh, I see, that's bad but not directly a problem with this package, so we can only work around this issue.
I also don't like it that this package requires all different parsers and only uses one of them.
One possibility would be to release a new major and only suggest packages instead of installing them and only provide some sort of dummy-parser that is shipped per default.
Pro:
- problems like this could be solved
- we only install the parser we need
Con:
- users have to require an additional package and configure it before any markdown will be correctly parsed
What do you think?
|
That was actually exactly the direction I was aiming for with this issue. But maybe to avoid the "con" from above, you could determine a default markdown parser this package should use, and suggest the other supported ones. Of course, if the default package would happen to be the One could also try to make the argument, that this package provides a common interface and method to integrate markdown libraries into a ZF2 application, but should not decide which library to include as a default. Which would essentially support your suggestion from above. To answer your closing question: I think, that as soon as a user has to decide, which adapter to use, he could also be bothered to require the matching library in his projects |
Well, then I think removing the direct dependencies and forcing a user to select the renderer is the way I would like to go. |
Btw: |
Due to recent events, the
erusev/parsedown
package was added to the FriendsOfPHP security advisories for versions<=1.6.4
.FriendsOfPHP/security-advisories@65b70c4
This was subsequently picked up by the
roave/security-advisories
package.Roave/SecurityAdvisories@f3e52bf
Since
maglnet/magl-markdown
is currently requiring the parsedown package, its conflicting withroave/security-advisories
.I'm opening this issue here to kind of discuss what a course of action could look like, if any is needed. 😄
The text was updated successfully, but these errors were encountered: