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

Always JSON encode, even if not escaping underscores #339

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lauraseidler
Copy link

We ran into the issue that alerts that e.g. include a line-break cannot be processed anymore after turning off underscore escaping (which in our case, breaks links passed to potential actions that include an underscore). See #270, though I'm not sure if the root cause there is the same.

While debugging, I noticed that when underscores are not escaped, none of the values are JSON encoded at all. This is an ugly but working fix - I don't think it's ideal. As the TODO comment already in the file says, it's probably better to JSON encode the entire card, and then replace underscores (and maybe don't do it for potential actions, as there's no Markdown there).

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

1 participant