diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2014-07-11 09:16:54 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2014-07-27 00:12:56 +0100 |
commit | 7d04d383a61299015e8017e42c38e1887808465a (patch) | |
tree | 7a2b7bcb1e88976a73849b213e8a29ff1ec2b062 /tests/fb2.images-embedded.fb2 | |
parent | 18f4490482aa4f21a1c4e4a9493fb3a88815dcfa (diff) | |
download | pandoc-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 'tests/fb2.images-embedded.fb2')
0 files changed, 0 insertions, 0 deletions