git.iko.soy/typeable/pandoc
on master help sign in
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.

commitbea62bcab8ff095057a38eb2b8ecfaa3c9efb9e7 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 3 Dec 2010, 23:00 (16 years ago) parentd4e5127
1 file changed+2−2
src/Text/Pandoc/Readers/Textile.hs+2−2
src/Text/Pandoc/Readers/Textile.hs+2−2
@@ -68,7 +68,7 @@ import Text.Pandoc.Shared
6868import Text.Pandoc.Parsing
6969import Text.Pandoc.Readers.HTML ( htmlTag, htmlEndTag, -- find code blocks
7070 rawHtmlBlock, rawHtmlInline )
71−import Text.Pandoc.Readers.Markdown (smartPunctuation)
71+-- import Text.Pandoc.Readers.Markdown (smartPunctuation)
7272import Text.ParserCombinators.Parsec
7373import Data.Char ( digitToInt, isLetter )
7474import Control.Monad ( guard )
@@ -314,7 +314,7 @@ inlineParsers :: [GenParser Char ParserState Inline]
314314inlineParsers = [ autoLink
315315 , str
316316 , htmlSpan
317− , smartPunctuation -- from markdown reader
317+-- , smartPunctuation -- from markdown reader
318318 , whitespace
319319 , endline
320320 , rawHtmlInline