Skip to content

Commit

Permalink
remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 14, 2025
1 parent 54816b0 commit c707020
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ knitr::opts_chunk$set(
[![Codecov test coverage](https://codecov.io/gh/r-lib/marquee/branch/main/graph/badge.svg)](https://app.codecov.io/gh/r-lib/marquee?branch=main)
<!-- badges: end -->

marquee is a markdown parser and renderer for the R graphics engine. It can be
marquee is a markdown parser and renderer for the R graphics engine. It can be
used to render rich text formatted as markdown (CommonMark) inside R graphics
such as ggplot2 or other graphics built on grid.

Expand All @@ -49,10 +49,10 @@ library(marquee)
library(grid)
fancy_style <- classic_style(
body_font = "baskerville",
body_font = "baskerville",
header_font = "marker felt",
code_font = "fira code"
) |>
) |>
modify_style("cb", background = linearGradient(
colours = c("lightblue", "white"),
x1 = 0, y1 = 1, x2 = 0, y2 = 0
Expand All @@ -65,11 +65,11 @@ grid.draw(grob)

## Prior art

I would be remiss to not mention [gridtext](https://github.com/wilkelab/gridtext)
I would be remiss to not mention [gridtext](https://github.com/wilkelab/gridtext)
and [ggtext](https://github.com/wilkelab/ggtext), both by Claus Wilke. These
packages aim to solve much the same problem as marquee, but work in a different way
and don't have the same powerful textshaping backend as marquee. Most notably from
a user perspective is perhaps that gridtext understands HTML to some degree,
a user perspective is perhaps that gridtext understands HTML to some degree,
whereas marquee is oblivious to both HTML and CSS. Instead, it supports the [full
CommonMark spec](https://spec.commonmark.org/) with the plan to add support for
custom span elements as well.

0 comments on commit c707020

Please sign in to comment.