Skip to content
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

Open
steffendietz opened this issue Feb 26, 2018 · 4 comments
Open

erusev/parsedown included in roave/security-advisories #9

steffendietz opened this issue Feb 26, 2018 · 4 comments
Milestone

Comments

@steffendietz
Copy link

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 with roave/security-advisories.
I'm opening this issue here to kind of discuss what a course of action could look like, if any is needed. 😄

@maglnet
Copy link
Owner

maglnet commented Feb 27, 2018 via email

@steffendietz
Copy link
Author

steffendietz commented Feb 27, 2018

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 erusev/parsedown regardless, the current situation would still be unchanged, but as you already said, it is no problem with this package.

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 composer.json file. 😄
But I'm probably a bit biased and this might not be the direction you want to go with your package.

@maglnet
Copy link
Owner

maglnet commented Feb 27, 2018

Well, then I think removing the direct dependencies and forcing a user to select the renderer is the way I would like to go.
I would avoid having a default renderer, as this could cause the same problem again but also makes the initial installation a bit more complicated.
I'll dig into this in the next days, when I'm back in the office ;)

@maglnet
Copy link
Owner

maglnet commented Mar 1, 2018

Btw:
The issue in parsedown is fixed, so I'll put this on hold, as the installation is possible again and it's not urgent anymore. :-)

@maglnet maglnet added this to the 2.0.0 milestone Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants