strip_md_footnotes: Strip Markdown footnotes from character vector

strip_md_footnotesR Documentation

Strip Markdown footnotes from character vector

Description

Removes all Markdown footnotes from a character vector.

Usage

strip_md_footnotes(x)

Arguments

x

A character vector to strip Markdown footnotes from. Note that elements in x are processed as separate Markdown domains, i.e. not as individual lines belonging to the same Markdown document.

Details

Note that it is not checked whether footnote references and definitions actually match (by identifier), thus they are removed even if they were invalid.

Value

A character vector of the same length as x.

See Also

Other (Pandoc) Markdown functions: as_md_list(), as_md_val_list(), as_md_vals(), md_verb(), pipe_table(), strip_md()

Examples

pal::strip_md_footnotes(
  "An **MD** formatted string with footnote[^fn].\n\n[^fn]: A note.\n"
)

salim-b/pal documentation built on Feb. 28, 2025, 6:51 p.m.