From 27373892cb98a2a6a1d35fba28798d9117fff58f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 15 Feb 2015 18:31:07 -0800 Subject: Moved handling of --smart from renderer to parser. This allows backslash escapes to disable smart quote transformations in particular cases. Closes #8. --- test/smart_punct.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/smart_punct.txt') diff --git a/test/smart_punct.txt b/test/smart_punct.txt index c870c9d..5deccde 100644 --- a/test/smart_punct.txt +++ b/test/smart_punct.txt @@ -4,58 +4,58 @@ "Hello," said the spider. "'Shelob' is my name." . -

“Hello,” said the spider. -“‘Shelob’ is my name.”

+

“Hello,” said the spider. +“‘Shelob’ is my name.”

. . 'A', 'B', and 'C' are letters. . -

‘A’, ‘B’, and ‘C’ are letters.

+

‘A’, ‘B’, and ‘C’ are letters.

. . 'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.' . -

‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. -So is ‘pine.’

+

‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. +So is ‘pine.’

. . 'He said, "I want to go."' . -

‘He said, “I want to go.”’

+

‘He said, “I want to go.”’

. . Were you alive in the 70's? . -

Were you alive in the 70’s?

+

Were you alive in the 70’s?

. . Here is some quoted '`code`' and a "[quoted link](url)". . -

Here is some quoted ‘code’ and a “quoted link”.

+

Here is some quoted ‘code’ and a “quoted link”.

. . Some dashes: one---two --- three---four --- five. . -

Some dashes: one—two — -three—four — five.

+

Some dashes: one—two — +three—four — five.

. . Dashes between numbers: 5--7, 255--66, 1987--1999. . -

Dashes between numbers: 5–7, 255–66, 1987–1999.

+

Dashes between numbers: 5–7, 255–66, 1987–1999.

. . Ellipses...and...and.... . -

Ellipses…and…and….

+

Ellipses…and…and….

. -- cgit v1.2.3