We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Google and other browser-enabled translators modify the code to translate it
To Reproduce Steps to reproduce the behavior:
Expected behavior The code snippets should not be translated.
Additional context This issue can be fixed by using the translate="no" attribute on the code snippet containers.
<div class="dp-highlighter nogutter" translate="no"> ... </div>
This code snippet may fix the problem, but the highlight library should highlight the code first.
document.querySelectorAll('.dp-highlighter').forEach(it => it.setAttribute('translate', 'no'))
I've tried to fix it myself, but I haven't figured out how to make it work properly.
Thanks for cool design :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Google and other browser-enabled translators modify the code to translate it
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The code snippets should not be translated.
Additional context
This issue can be fixed by using the translate="no" attribute on the code snippet containers.
This code snippet may fix the problem, but the highlight library should highlight the code first.
I've tried to fix it myself, but I haven't figured out how to make it work properly.
Thanks for cool design :)
The text was updated successfully, but these errors were encountered: