smartypants: smartypants: ASCII punctuation to HTML entities

Description Usage Arguments Value See Also Examples

View source: R/renderMarkdown.R

Description

smartypants transforms plain ASCII punctuation characters into smart typographic punctuation HTML entities.

Usage

1
smartypants(file, output, text)

Arguments

file

a character string giving the pathname of the file to read from. If it is omitted from the argument list, then it is presumed that the text argument will be used instead.

output

a character string giving the pathname of the file to write to. If it is omitted, then it is presumed that the user expects the results returned as a character string.

text

a character vector containing the markdown text to transform.

Value

smartypants returns NULL invisibly when output is to a file, and a character string otherwise.

See Also

markdownExtensions, markdownHTMLOptions, markdownToHTML.

For a description of the original markdown version:

http://daringfireball.net/projects/markdown/

The original Sundown library on github:

https://github.com/vmg/sundown

C stubs for writing new renders are in inst/include/markdown_rstubs.[ch].

Examples

1
cat(smartypants(text = "1/2 (c)\n"))

rstudio/markdown documentation built on Aug. 9, 2019, 11:24 a.m.