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

Retrieve Markdown parser from Application #270

Merged
merged 1 commit into from
May 13, 2021
Merged

Retrieve Markdown parser from Application #270

merged 1 commit into from
May 13, 2021

Conversation

roelofr
Copy link

@roelofr roelofr commented May 7, 2021

Changing the markdown provider could be quite an API change, but instead I elected to add a small PSR Container layer inbetween, to leave the functioning identical to the current behaviour.

I didn't add a commonmark parser yet, but that's one extra commit away, if that's deemed required.

Added tests using a super dumb parser, since "parsing markdown" isn't exactly bound to contracts.

Helps with #252

Does NOT change public API, but you can override the contract in your
application's service provider.
@roelofr roelofr changed the base branch from master to 2.x May 7, 2021 10:39
@roelofr
Copy link
Author

roelofr commented May 7, 2021

I changed the base to 2.x, since this is a change that can be implemented in v2 without serious issues (no method signatures were changed)

Copy link
Owner

@saleem-hadad saleem-hadad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice! Thank you for the enhancement, I'll release this with v2 but I'll write a similar solution for v3.

@saleem-hadad saleem-hadad merged commit 7c22820 into saleem-hadad:2.x May 13, 2021
@roelofr roelofr deleted the feature/custom-markdown-parser-support branch May 13, 2021 06:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants