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

Add optional custom markupformatter parameter #198

Merged
merged 2 commits into from
Apr 8, 2020

Conversation

CaptainStack
Copy link

All I've done in this change is add an optional parameter for a custom IMarkupFormatter that can be supplied to PreMailer.Net for special circumstances where the provided MarkupFormatters are not working for the client's needs.

The issue was caused by the default behavior used in AngleSharp, which provides an interface for custom formatters in case that behavior does not work. This change simply exposes that interface as an option in PreMailer.Net and passes it onto AngleSharp.

I implemented this specifically to address the problem I was having in this issue:
#193

I also collaborated with @FlorianRappl - the primary author of AngleSharp to reach this implementation. Please let me know if you have any questions or concerns about this feature :)

@martinnormark martinnormark merged commit 1f5eab1 into milkshakesoftware:master Apr 8, 2020
@martinnormark
Copy link
Contributor

Thanks for this PR 🙏

Release is cut, and will hit nuget fairly soon :shipit:

@jonedmiston
Copy link

@CaptainStack do you have example code on how to use the override to prevent encoding '&' in the querystring (#193)?

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

3 participants