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

Autolinker plugin strips out percent signs and some digits in Java (and maybe others) #1721

Closed
reyronald opened this issue Feb 10, 2019 · 1 comment · Fixed by #1723
Closed

Comments

@reyronald
Copy link

With the Autolinker plugin enabled, Prism mistakenly replaces some percent signs and digits. I've only seen this in Java but other languages might be affected as well.

("%010d")

would become:

("�0d")

Here's a minimal reproduction: https://codesandbox.io/s/r5o7ny0x74

Something important to note here though, is that this doesn't happen if only the Java language is included in the Prism object. It's when you add all the others that this is reproducible, so I'm guessing it's some sort of conflict with the grammar or hooks for another language.

Reference: refined-bitbucket/refined-bitbucket#264

@reyronald
Copy link
Author

Wow, that was really quick!

Thanks a lot guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants