Pandoc Convert a String

Usage

QC(to = "latex", from = "markdown", text = "clipboard", copy2clip = TRUE)

Arguments

to
Pandoc type you're converting to (defualt is "latex").
from
Pandoc type you're converting from (defualt is "markdown").
text
character vector or text copied to the clipboard. Default is to read from the clipboard.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.

Value

Returns a character vector every word capitalized.

Description

Uses Pandoc to convert from one form to another.

Details

This capitalizes every word of a string.

Warning

Ligatures parsing is very good, however, these elements my be incorrect. If a warning is thrown check the use of "ff", "fi", "fl", "ffi" and "ffl".

Examples

x <- "\\*note: I *like* chocolate **milk** too ***much***!" QC(text=x)
[1] "*note: I \\emph{like} chocolate \\textbf{milk} too \\textbf{\\emph{much}}!"
QC(text=x, "html")
[1] "

*note: I like chocolate milk too much!

"

Author

Michael Nelson and Tyler Rinker.