{"id":19278102,"url":"https://github.com/r-lib/marquee","last_synced_at":"2025-05-07T21:28:49.769Z","repository":{"id":233625478,"uuid":"787586080","full_name":"r-lib/marquee","owner":"r-lib","description":"Markdown Parser and Renderer for R Graphics","archived":false,"fork":false,"pushed_at":"2025-04-23T12:29:42.000Z","size":27645,"stargazers_count":90,"open_issues_count":19,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-23T13:42:57.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marquee.r-lib.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lib.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-16T20:01:24.000Z","updated_at":"2025-04-23T12:26:24.000Z","dependencies_parsed_at":"2024-05-05T20:30:11.714Z","dependency_job_id":"ff2aca1c-1f47-4463-a4fe-1477c49fd371","html_url":"https://github.com/r-lib/marquee","commit_stats":null,"previous_names":["thomasp85/marquee","r-lib/marquee"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fmarquee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fmarquee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fmarquee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fmarquee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/marquee/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252956753,"owners_count":21831366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T21:07:53.828Z","updated_at":"2025-05-07T21:28:49.760Z","avatar_url":"https://github.com/r-lib.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  dev = \"ragg_png\",\n  dpi = 300\n)\n```\n\n# marquee \u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138\" alt=\"\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/r-lib/marquee/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/marquee/actions/workflows/R-CMD-check.yaml)\n[![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)\n[![Codecov test coverage](https://codecov.io/gh/r-lib/marquee/graph/badge.svg)](https://app.codecov.io/gh/r-lib/marquee)\n\u003c!-- badges: end --\u003e\n\nmarquee is a markdown parser and renderer for the R graphics engine. It can be\nused to render rich text formatted as markdown (CommonMark) inside R graphics\nsuch as ggplot2 or other graphics built on grid.\n\n## Installation\n\n``` r\n# You can install marquee from CRAN\ninstall.packages(\"marquee\")\n\n# Or get the development version from Github using pak\npak::pak(\"r-lib/marquee\")\n```\n\n## Examples\n\nThe main function of the package is `marquee_grob()` which creates a grob based\non markdown text and a style that can be rendered with grid:\n\n```{r, fig.asp=2}\n# Let's render this readme\nreadme \u003c- paste(readLines(\"README.Rmd\")[-seq_len(17)], collapse = \"\\n\")\n\nlibrary(marquee)\nlibrary(grid)\n\nfancy_style \u003c- classic_style(\n  body_font = \"baskerville\",\n  header_font = \"marker felt\",\n  code_font = \"fira code\"\n) |\u003e\n  modify_style(\"cb\", background = linearGradient(\n    colours = c(\"lightblue\", \"white\"),\n    x1 = 0, y1 = 1, x2 = 0, y2 = 0\n  ))\ngrob \u003c- marquee_grob(readme, style = fancy_style)\ngrid.draw(grob)\n```\n\n(*The above is an image – go ahead and check*)\n\n## Prior art\n\nI would be remiss to not mention [gridtext](https://github.com/wilkelab/gridtext)\nand [ggtext](https://github.com/wilkelab/ggtext), both by Claus Wilke. These\npackages aim to solve much the same problem as marquee, but work in a different way\nand don't have the same powerful textshaping backend as marquee. Most notably from\na user perspective is perhaps that gridtext understands HTML to some degree,\nwhereas marquee is oblivious to both HTML and CSS. Instead, it supports the [full\nCommonMark spec](https://spec.commonmark.org/) with the plan to add support for\ncustom span elements as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fmarquee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fmarquee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fmarquee/lists"}