Embeds the SVG as an <img> using a data:image/svg+xml;base64,... URI.
This is more robust than inline <svg> for Pandoc/pkgdown (avoids "unclosed div"
warnings). For non-HTML outputs, it falls back to include_card_png().
Usage
include_card(
svg_string,
width = "100%",
alt = "Card generated by cardargus",
dpi = 300,
engine = c("auto", "chrome", "rsvg")
)Arguments
- svg_string
SVG string from
svg_card().- width
Display width (CSS units), e.g.
"100%","500px".- alt
Alternative text for accessibility.
- dpi
Fallback DPI used when output is not HTML (default 300).
- engine
Rendering engine for non-HTML output:
"auto","chrome", or"rsvg".