double_escape_md: Check markdown escaping

View source: R/markdown-escaping.R

double_escape_mdR Documentation

Check markdown escaping

Description

This is a regression test for Markdown escaping.

Usage

double_escape_md(text)

Arguments

text

Input text.

Details

Each of the following bullets should look the same when rendered:

  • Backticks: ⁠\⁠, ⁠\%⁠, ⁠\$⁠, ⁠\_⁠

  • ⁠\verb{}⁠: ⁠\⁠, ⁠\%⁠, ⁠\$⁠, ⁠\_⁠

[ this isn't a link ] \[ neither is this \]

Value

Double-escaped text.

Examples

"%" # percent
"\"" # double quote
'\'' # single quote

r-lib/roxygen2 documentation built on April 21, 2024, 4:36 a.m.