From bea62bcab8ff095057a38eb2b8ecfaa3c9efb9e7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 3 Dec 2010 23:00:39 -0800 Subject: Textile reader: temporarily removed smartPunctuation. The smartPuncutation parser from the markdown parser was being used, but this creates two problems: * smart punctuation rules are slightly different in textile, for example, a single dash wish space around becomes an En dash. * the following gets parsed as a double quoted string followed by a colon, rather than as a link: "emphasized text":http://my.url.com This needs rethinking. --- src/Text/Pandoc/Readers/Textile.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs index c2b92b75b..7044cbad4 100644 --- a/src/Text/Pandoc/Readers/Textile.hs +++ b/src/Text/Pandoc/Readers/Textile.hs @@ -68,7 +68,7 @@ import Text.Pandoc.Shared import Text.Pandoc.Parsing import Text.Pandoc.Readers.HTML ( htmlTag, htmlEndTag, -- find code blocks rawHtmlBlock, rawHtmlInline ) -import Text.Pandoc.Readers.Markdown (smartPunctuation) +-- import Text.Pandoc.Readers.Markdown (smartPunctuation) import Text.ParserCombinators.Parsec import Data.Char ( digitToInt, isLetter ) import Control.Monad ( guard ) @@ -314,7 +314,7 @@ inlineParsers :: [GenParser Char ParserState Inline] inlineParsers = [ autoLink , str , htmlSpan - , smartPunctuation -- from markdown reader +-- , smartPunctuation -- from markdown reader , whitespace , endline , rawHtmlInline -- cgit v1.2.3