Skip to content

Commit

Permalink
fix: added tab-size support for top-level content and code elements (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin authored Feb 5, 2025
1 parent 75c6cae commit 892c8a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ MIT
- `--yfm-color-table-row-background`
- `--yfm-color-border`
- `--yfm-color-accent`
- `--yfm-tab-size`

**code**

- `--yfm-color-inline-code`
- `--yfm-color-inline-code-background`
- `--yfm-color-code-background`
- `--yfm-tab-size-code`

**hightlight**

Expand Down
2 changes: 2 additions & 0 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ MIT
- `--yfm-color-table-row-background`
- `--yfm-color-border`
- `--yfm-color-accent`
- `--yfm-tab-size`

**code**

- `--yfm-color-inline-code`
- `--yfm-color-inline-code-background`
- `--yfm-color-code-background`
- `--yfm-tab-size-code`

**hightlight**

Expand Down
2 changes: 2 additions & 0 deletions src/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
line-height: 20px;
word-wrap: break-word;
color: var(--yfm-color-text);
tab-size: var(--yfm-tab-size, inherit);

* {
box-sizing: border-box;
Expand Down Expand Up @@ -349,6 +350,7 @@
font-size: 0.875em;
white-space: pre-wrap;
color: var(--yfm-color-inline-code);
tab-size: var(--yfm-tab-size-code, inherit);
}

pre {
Expand Down

0 comments on commit 892c8a6

Please sign in to comment.