diff --git a/modules/pygments.wrapper.css b/modules/pygments.wrapper.css index 02e81847..b1f7cb93 100644 --- a/modules/pygments.wrapper.css +++ b/modules/pygments.wrapper.css @@ -4,3 +4,13 @@ direction: ltr; unicode-bidi: embed; } + +/* Avoid displaying double borders for nested 'code' elements. + Before we started using the 'code' tag for inline code snippets, + ... + was a common pattern. Continue supporting it in existing content. */ +code code.mw-highlight { + background-color: transparent; + border: 0; + padding: 0; +}