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

Improve body parsing #76

Merged
merged 2 commits into from
Oct 14, 2018
Merged

Conversation

vilhalmer
Copy link
Collaborator

@vilhalmer vilhalmer commented Oct 14, 2018

When receiving invalid markup in a notification, escape it even if markup is enabled. This prevents the bad markup from breaking the user's defined format. Additionally, the markup flag now only applies to application-provided content (i.e., the body). If a user doesn't want markup in their style, they should change format anyway since the default is quite ugly without markup enabled.

Fixes #55.


screenshot_2018-10-14-125128
A notification containing invalid markup which still formats correctly.

screenshot_2018-10-14-125308
A notification containing valid markup, but with markup=false.

Copy link
Owner

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM

@emersion emersion merged commit bb1f3b2 into emersion:master Oct 14, 2018
@emersion
Copy link
Owner

Thanks!

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