Fix code format overriding (#2673)

Co-authored-by: eztaK-red <eztak.red@gmail.com>
This commit is contained in:
Greg Bergé
2025-01-06 15:15:39 +01:00
committed by GitHub
parent c77142a16f
commit 46f63cbd55
2 changed files with 5 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'gitbook': patch
---
Fix code format overriding inline link styles
@@ -73,7 +73,6 @@ function Code(props: MarkedLeafProps<DocumentMarkCode>) {
'py-[1px]',
'px-1.5',
'min-w-[1.625rem]',
'inline-flex',
'justify-center',
'items-center',
'leading-normal',
@@ -82,10 +81,8 @@ function Code(props: MarkedLeafProps<DocumentMarkCode>) {
'ring-dark/1',
'bg-dark/[0.06]',
'rounded',
'text-dark/8',
'dark:ring-light/1',
'dark:bg-light/1',
'dark:text-light/7',
// Text size is proportional to the font-size of the parent element
'text-[.875em]',
// We ensure that the code is not making the parent bigger, especially in headings