diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2014-03-25 18:22:23 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2014-04-01 13:44:06 +0100 |
commit | 0ccca94b4cb22e846289c004deaa023245e14981 (patch) | |
tree | c596e71a4fd33086b89418b169f0abcd43303097 /src/Text/Pandoc/Writers/Org.hs | |
parent | 99f4f636df36d84a4bc58f67337af3584595f5c1 (diff) | |
download | pandoc-0ccca94b4cb22e846289c004deaa023245e14981.tar.gz |
Bugfix for #1175 and convert textile reader to use builder.
The reader did not correctly parse inline markup. The behavoir is now as follows.
(a) The markup must start at the start of a line, be inside previous
inline markup or be preceeded by whitespace.
(b) The markup can not span across paragraphs (delimited by \n\n)
(c) The markup can not be followed by a alphanumeric character.
(d) Square brackets can be placed around the markup to avoid having
to have white space before it.
In order to make these changes it was either necessary to convert the parser to return a list of inlines or to convert the whole reader to use the builder. The latter approach whilst more work makes a bit more sense as it becomes easy to arbitarily append and prepend elements without changing the type.
Tests are accordingly updated in a later commit to reflect the different normalisation behavoir specified by the builder monoid.
Diffstat (limited to 'src/Text/Pandoc/Writers/Org.hs')
0 files changed, 0 insertions, 0 deletions