markdown (version 1.12)

smartypants: Convert some ASCII strings to HTML entities

Description

Transform ASCII strings (c) (copyright), (r) (registered trademark), (tm) (trademark), and fractions n/m into smart typographic HTML entities.

Usage

smartypants(text)

Value

A character vector of the transformed text.

Arguments

text

A character vector of the Markdown text.

Examples

Run this code
cat(smartypants("1/2 (c)\n"))

Run the code above in your browser using DataLab