summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2014-07-11 09:16:54 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2014-07-27 00:12:56 +0100
commit7d04d383a61299015e8017e42c38e1887808465a (patch)
tree7a2b7bcb1e88976a73849b213e8a29ff1ec2b062 /pandoc.cabal
parent18f4490482aa4f21a1c4e4a9493fb3a88815dcfa (diff)
Added txt2tags reader
http://txt2tags.org/ There are two points which currently do not match the official implementation. 1. In the official implementation lists can not be nested like the following but the reader would interpret this as a bullet list with the first item being a numbered list. ``` - + This is not a list ``` 2. The specification describes how URIs automatically becomes links. Unfortunately as is often the case, their definitiong of URI is not clear. I tried three solutions but was unsure about which to adopt. * Using isURI from Network.URI, this matches far too many strings and is therefore unsuitable * Using uri from Text.Pandoc.Shared, this doesn't match all strings that the reference implementation matches * Try to simulate the regex which is used in the native code I went with the third approach but it is not perfect, for example trailing punctuation is captured in Urls.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal3
1 files changed, 2 insertions, 1 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 08644d995..580445fd2 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -328,7 +328,8 @@ Library
Text.Pandoc.Templates,
Text.Pandoc.XML,
Text.Pandoc.SelfContained,
- Text.Pandoc.Process
+ Text.Pandoc.Process,
+ Text.Pandoc.Readers.Txt2Tags
Other-Modules: Text.Pandoc.Readers.Docx.Lists,
Text.Pandoc.Readers.Docx.Reducible,
Text.Pandoc.Readers.Docx.Parse,