aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2021-10-02 23:28:36 -0700
committerJohn MacFarlane <[email protected]>2021-10-02 23:28:36 -0700
commit2c7b3508233438bd3a1f2577e5320e5198d12012 (patch)
tree81a0b144457e6c65cf5be0d3b215cdd6d1ba4abf
parent25bb9ff07b9f9bac301ab9fea519a9ec633b8022 (diff)
Set up to use regex-tdfa in markdown reader (for abbrevs).
-rw-r--r--pandoc.cabal2
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs1
2 files changed, 3 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index a55dbcc22..93cb10cd7 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -584,6 +584,8 @@ library
unicode-collation >= 0.1.1 && < 0.2,
zip-archive >= 0.2.3.4 && < 0.5,
zlib >= 0.5 && < 0.7,
+ regex-tdfa >= 1.3 && < 1.4,
+ regex-base >= 0.94 && < 0.95,
pretty-show >= 1.10 && < 1.11,
pretty >= 1.1 && < 1.2
if os(windows) && arch(i386)
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 88ab5370f..850c21a3b 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -49,6 +49,7 @@ import Text.Pandoc.Readers.LaTeX (applyMacros, rawLaTeXBlock, rawLaTeXInline)
import Text.Pandoc.Shared
import Text.Pandoc.XML (fromEntities)
import Text.Pandoc.Readers.Metadata (yamlBsToMeta, yamlBsToRefs, yamlMetaBlock)
+import Text.Regex.TDFA
-- import Debug.Trace (traceShowId)
type MarkdownParser m = ParserT Sources ParserState m