modify_header_rm_md: Remove Markdown Syntax from Header

View source: R/modify_header_rm_md.R

modify_header_rm_mdR Documentation

Remove Markdown Syntax from Header

Description

Remove markdown syntax (e.g. double star for bold, underscore for italic, etc) from the headers and spanning headers of a gtsummary table.

Usage

modify_header_rm_md(x, md = "bold", type = "star")

Arguments

x

(gtsummary)
A gtsummary table

md

(character)
Must be one or more of 'bold' and 'italic'. Default is 'bold'.

type

(character)
Must be one or more of 'star' and 'underscore'. Default is 'star'.

Value

gtsummary table

Examples

tbl_roche_summary(
  data = cards::ADSL,
  include = AGE,
  by = ARM,
  nonmissing = "always"
) |>
  modify_header_rm_md()

crane documentation built on Aug. 30, 2025, 1:12 a.m.