Skip to content

Commit

Permalink
remove hardcoding of spacing options-1
Browse files Browse the repository at this point in the history
Co-authored-by: Yihui Xie <[email protected]>
  • Loading branch information
hayden-MB and yihui authored Oct 23, 2024
1 parent 6c9030b commit a481fb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inst/resources/gitbook/js/plugin-fontsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
$book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, '');
$book.addClass("color-theme-"+fontState.theme);
}
$book[0].className = $book[0].className.replace(/\bline-height-\S+/g, '');
$book.addClass("line-height-" + fontState.spacing);
$book[0].querySelector('section').dataset.lineHeight = fontState.spacing / 10;

};

Expand Down

0 comments on commit a481fb7

Please sign in to comment.