diff_to_markup: Create track changes diff

View source: R/diff_to_markup.R

diff_to_markupR Documentation

Create track changes diff

Description

Compares two strings and creates a diff using the markdown track changes syntax.

Usage

diff_to_markup(before, after, style = "critic")

Arguments

before

(character of length 1) The text before the changes.

after

(character of length 1) The text after the changes.

style

(character of length 1) The type of change tags to add. Either "critic" for Critical Markdown tags, or "pandoc" for the track change tags used by pandoc.


ropenscilabs/trackmd documentation built on May 16, 2022, 9:31 p.m.