Documentation ¶
Overview ¶
Package smartypants translates basic ASCII punctuation into fancy Unicode punctuation according to some simple contextual rules:
Input Output Remarks "hello world" “hello world” Left and right double quote 'hello world' ‘hello world’ Left and right single quote hello-world hello–world No change hello - world hello – world N-dash hello--world hello—world M-dash hello -- world hello — world M-dash ... … Horizontal ellipsis 1/2 1/4 3/4 ½ ¼ ¾ (c) (r) (tm) © ® ™
See http://daringfireball.net/projects/smartypants/.
Extracted and modified from the Blackfriday Markdown processor available at http://github.com/russross/blackfriday. Copyright © 2011 Russ Ross <russ@russross.com>. Distributed under the Simplified BSD License. See file License for details.
Index ¶
Constants ¶
View Source
const ( LatexDashes = 1 << iota // translate -, --, and --- according to LaTeX rules Fractions // translate arbitrary fractions with <sup> and <sub> )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.