diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-12-03 23:00:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-03 23:10:52 -0800 |
commit | bea62bcab8ff095057a38eb2b8ecfaa3c9efb9e7 (patch) | |
tree | 230224d9f03793594949b96c535f261175808ccb /src/Text/Pandoc | |
parent | d4e512776d9e38ef613167dd48fda17104ff25d9 (diff) | |
download | pandoc-bea62bcab8ff095057a38eb2b8ecfaa3c9efb9e7.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Textile.hs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |