Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ› fix: Fix Code blocks direction in lists #259

Merged
Merged
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
9 changes: 5 additions & 4 deletions src/Highlighter/SyntaxHighlighter/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
height: 34px;
padding-block: 0;
padding-inline: 8px;
border-radius: ${token.borderRadius};

Check warning on line 18 in src/Highlighter/SyntaxHighlighter/style.ts

View check run for this annotation

Codecov / codecov/patch

src/Highlighter/SyntaxHighlighter/style.ts#L18

Added line #L18 was not covered by tests

font-family: ${token.fontFamilyCode};
color: ${token.colorTextTertiary};

border-radius: ${token.borderRadius};
`,
),
shiki: cx(
`${prefix}-shiki`,
css`
direction: ltr;
margin: 0;
padding: 0;
text-align: start;

.shiki {
overflow-x: auto;
Expand Down Expand Up @@ -69,10 +70,10 @@
.highlighted-word {
padding-block: 0.1em;
padding-inline: 0.2em;

background: ${token.colorFillTertiary};
border: 1px solid ${token.colorBorderSecondary};
border-radius: ${token.borderRadius}px;

background: ${token.colorFillTertiary};

Check warning on line 76 in src/Highlighter/SyntaxHighlighter/style.ts

View check run for this annotation

Codecov / codecov/patch

src/Highlighter/SyntaxHighlighter/style.ts#L76

Added line #L76 was not covered by tests
}

.diff {
Expand Down