diff --git a/.changeset/orange-chicken-develop.md b/.changeset/orange-chicken-develop.md new file mode 100644 index 000000000..59c6e868b --- /dev/null +++ b/.changeset/orange-chicken-develop.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Fix code format overriding inline link styles diff --git a/packages/gitbook/src/components/DocumentView/Text.tsx b/packages/gitbook/src/components/DocumentView/Text.tsx index e6e34f2d8..8d12ff44a 100644 --- a/packages/gitbook/src/components/DocumentView/Text.tsx +++ b/packages/gitbook/src/components/DocumentView/Text.tsx @@ -73,7 +73,6 @@ function Code(props: MarkedLeafProps) { '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) { '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