smartypants: ASCII punctuation to HTML entities
smartypants
transforms plain ASCII punctuation characters into
smart typographic punctuation HTML entities.
smartypants(file, output, text)
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
|
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. |
smartypants
returns NULL invisibly when output is to a file,
and a character string otherwise.
For a description of the original markdown version:
The original Sundown library on github:
C stubs for writing new renders are in inst/include/markdown_rstubs.[ch].
cat(smartypants(text = "1/2 (c)\n"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.