highlight_text: Format text with markdown and span elements for use with...

View source: R/utils.R

highlight_textR Documentation

Format text with markdown and span elements for use with ggtext element_markdown or geom_richtext

Description

Format text with markdown and span elements for use with ggtext element_markdown or geom_richtext

Usage

highlight_text(text, colour = "#000000", style = "", size = 16)

Arguments

text

text to highight

colour

hex code of color to highlight

style

b for bold, i for italics or a two letter combination bi for both

size

text size in px, defaults to 16

Value

formatted string


jkaupp/jkmisc documentation built on April 29, 2024, 6:33 a.m.