Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/orange-chicken-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': patch
---

Fix code format overriding inline link styles
3 changes: 0 additions & 3 deletions packages/gitbook/src/components/DocumentView/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down
Loading