aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/UTF8.hs
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 /src/Text/Pandoc/UTF8.hs
parent18f4490482aa4f21a1c4e4a9493fb3a88815dcfa (diff)
downloadpandoc-7d04d383a61299015e8017e42c38e1887808465a.tar.gz
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 'src/Text/Pandoc/UTF8.hs')
0 files changed, 0 insertions, 0 deletions