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.
This commit is contained in:
John MacFarlane 2010-12-03 23:00:39 -08:00
parent d4e512776d
commit bea62bcab8

View file

@ -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