Forum Discussion
BigeYoung
May 24, 2022Copper Contributor
Edge's built-in translation breaks typography
For web pages with code in the body, using Edge's built-in translation will cause all the code to be moved to the end of the paragraph, which cannot be restored even after clicking "Sho...
yqs112358
Jan 26, 2024Copper Contributor
I have posted a simple TamperMonkey script to fix this: https://greasyfork.org/scripts/485715-fix-code-bug-for-edge-translator
Github repo: https://github.com/yqs112358/Fix-code-tag-bug-for-Edge-translator
Github repo: https://github.com/yqs112358/Fix-code-tag-bug-for-Edge-translator
Hello_Hell1610
Mar 31, 2024Copper Contributor
But your script introduces another problem. The browser does not translate the contents of the code tags. When your script turns code elements into span elements, Edge will translate the contents of the span elements. This can be misleading.