clean_brackets: Un-escape square brackets

Description Usage Arguments Value Examples

Description

Pandoc escapes square brackets in the HTML:md conversion, which makes the Rmarkdown invalid. This function un-escapes the brackets.

Usage

1

Arguments

doc

The markdown text to be cleaned

Value

A clean version of doc

Examples

1
2
3
4
5
## Not run: 
doc <- "This is the issue \\[here\\]"
clean_brackets(doc)

## End(Not run)

jacob-ogre/gdoc2rmd documentation built on May 18, 2019, 8:01 a.m.