[docs] Add background to inline code tags#4978
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,181.81 ms -217.04 ms(-15.5%) | Renders: 50 (+0) | Paint: 1,789.05 ms -310.12 ms(-14.8%)
8 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@dav-is the new local rehype plugin seems the only reliable way of doing this without introducing any runtime. The idea is that instances like the one in the screenshot below (HTML tags) are kept without a background.
If you have any ideas on how to make this simpler, please share. CSS-only solutions required checking for certain |
Are you opposed to using code[data-inline]:not(:has(> .di-ht)) {
/* */
}If not, your PR uses the enhancers API as intended 👍🏼 |
@dav-is that was my first attempt, but targeting |
e925463 to
71a917c
Compare
|
@dav-is you convinced me. Updated the PR to stick to the CSS-only approach. |

Closes #4009
Previous attempt: #4043