You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add translate="no" attribute to code and pre elements
This commit adds the `translate="no"` attribute to both inline code elements and code blocks to prevent machine translation tools from attempting to translate code
snippets.
Changes include:
1. Added `translate="no"` attribute to code blocks in block_listing.html.erb
2. Added `translate="no"` attribute to inline code elements in inline_quoted.html.erb
3. Added comprehensive tests to verify the attribute is correctly applied:
- Test for inline code elements verifies the attribute is present on <code> tags
- Test for code blocks verifies the attribute is present on <pre> tags with data-type="programlisting"
0 commit comments