Everything-Metric icon indicating copy to clipboard operation
Everything-Metric copied to clipboard

Disable for code

Open redfast00 opened this issue 5 years ago • 3 comments

When I read code, numbers in quotes like inp = '653427918'​ get converted to inp = '653427918'​【199 165 km】. I don't know how easy it is, but I think it would be nice to have an option to turn off the converter for monospace text.

redfast00 avatar Dec 23 '20 09:12 redfast00

hmm, I'll check if there is way to check if it is monospace, but it already ignores <code> tag so it doesn't convert the number in your message above. Is there another tag where that code is wrapped into? Can you show me the page where it happens?

m1l avatar Dec 23 '20 18:12 m1l

Sure: https://gist.github.com/redfast00/6b462037e57f33c850987242c34fd91d

I don't know if it's possible to detect that text is displayed in a monospace font and to decide to convert units based on that.

redfast00 avatar Dec 24 '20 09:12 redfast00

Additional example: https://github.com/pyauth/pyotp#time-based-otps

redfast00 avatar Dec 25 '20 15:12 redfast00