Skip to content

Commit

Permalink
Add slight horizontal padding to code spans (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 authored Jun 3, 2024
1 parent eac1c63 commit 1c598c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

* Fixed a bug in bullet placement that affected tight lists with multiple spans
(#18)
* code spans gains a slight horizontal padding to let the background breathe a
bit. Currently padding around spans doesn't affect shaping (i.e. it doesn't
move text further from it's neighbors)

# marquee 0.1.0

Expand Down
2 changes: 1 addition & 1 deletion R/classic_style.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ classic_style <- function(base_size = 12, body_font = "", header_font = "",
em = style(italic = TRUE),
str = style(weight = "bold"),
a = style(color = "#4078c0"),
code = style(family = code_font, size = relative(0.85), background = "#0000000A", padding = trbl(em(0.2), 0), border_radius = rem(3/16)),
code = style(family = code_font, size = relative(0.85), background = "#0000000A", padding = trbl(em(0.2), em(0.1)), border_radius = rem(3/16)),
u = style(underline = TRUE),
del = style(strikethrough = TRUE),
img = style(align = "center", border = NA),
Expand Down
Binary file modified man/figures/README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c598c2

Please sign in to comment.