mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 23:15:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user