ENH Styling for api links contains backticks

This commit is contained in:
Steve Boyd 2023-02-08 14:20:42 +13:00
parent b1db62f75b
commit 3c48b1aa8c
1 changed files with 13 additions and 0 deletions

View File

@ -34,6 +34,19 @@ exports.onRenderBody = ({ setPostBodyComponents, setHeadComponents, pathname })
margin: 2rem 0;
}
`
}} />,
// this is being done as a quick work around as there's issues when building css
<style type="text/css" dangerouslySetInnerHTML={{
__html: `
.api-link code {
text-decoration: underline;
color: #5d6778;
}
.api-link code:hover,
.api-link code:active {
text-decoration: none;
}
`
}} />
]);
setPostBodyComponents([