Added support for math expressions written with standard markdown
math syntax ($expression$ for inline math and
$$expression$$ for display math). Rendering is done with
the new math shaper in textshaping
(textshaping::shape_math()) and requires a version of
textshaping that provides it; an informative error is raised if the text
contains math and the installed textshaping is too old
Added support for custom block tags using fenced div syntax: a
fence of three or more colons followed by a class
(::: {.name}) wraps the enclosed content in a block with
the given style tag. Fences of different lengths can be nested, allowing
whole blocks to be styled with custom styles (#3)
HTML entities now return the correct symbols (@clauswilke, #89)
Fixed a regression where a vector of bullets passed to
classic_style() or modify_style() was recycled
into multiple style sets (#99)
Fixed a crash (session abort) when using
guide_marquee() together with
marquefy_theme(), caused by an NA title width
being used instead of the default width (#95)
geom_marquee() now takes its default font family,
size, and colour from the theme, like other text geoms do on ggplot2
>= 4.0.0 (#106)
Fixed horizontal inline padding being applied twice to background and border rectangles of styled spans, so borders no longer spill into neighbouring words. One-sided padding now also correctly adds spacing (#93)
Multi-line text in element_marquee() now follows the
element’s hjust for line alignment (like
element_text()), unless the style sets an explicit
alignment. Additionally, marquefy_theme() no longer sets
style and width on every element, so a
theme() call on a parent element (e.g.
axis.text) propagates to its children
(e.g. axis.text.x) (#104)
element_marquee() now correctly falls back to the
base family, colour, size, and lineheight of the provided style when
these are not set on the element itself
Documented that in element_marquee() the element
margin replaces body padding from the style, and that paragraph spacing
must be set on the paragraph style (e.g. via
modify_style(style, "p", ...)) rather than through
base-level padding (#100)
element_marquee() is now an S7 subclass of
ggplot2::element_text on ggplot2 >= 4.0.0, so setting it
on a parent theme element (e.g. title) correctly propagates
to child elements (e.g. plot.title) instead of rendering
the raw markdown as plain text (#97)
force_body_marginwidth is properly propagated in
´guide_marquee()`border_size to border_width for
consistencyborder_type and outline_type styles
to control the linetype of borders and outlineselement_marquee() that resulted in wrong
width calculation for rotated text (#69)element_marquee() now works with factor input and will
fall back to element_text() for expressions (#71)element_marquee() is communicated similar to
element_text() (#57)BIG with font size 30.out style. Outlines can be controlled with the
outline, outline_width,
outline_join and outline_mitre style settings
(#60)guide_marquee()force_body_margin argument to enforce that the body
margin is not influenced by collapsing (allowing you to turn it off
completely). This setting is turned on for geom_marquee()
and element_marquee() (#23)glyphs capabilitiesguide_marquee() to make allow legends with keys
mixed into free text descriptions