aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/ConTeXt.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-12-26 23:04:45 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-12-26 23:04:45 -0800
commitdd96267626e6f52e49c912cfe90380de2df469e5 (patch)
tree9c818b8b269f8df7f60043260871edbfb4d46deb /src/Text/Pandoc/Writers/ConTeXt.hs
parent765a77758223ce20ebb4d5c4f1456b61c80258fe (diff)
downloadpandoc-dd96267626e6f52e49c912cfe90380de2df469e5.tar.gz
Modified str parser to capture apostrophes in smart mode.
This solves a problem stemming from the fact that a parser doesn't know what came *before* in the input stream. Previously pandoc would parse D'oh l'*aide* as containing a single quoted "oh l", when both `'`s should be apostrophes. (Issue #360.) There are two issues here. (a) It is obvious that the first `'` is not an open quote, becaues of the preceding `D`. This patch solves the problem. (b) It is obvious to us that the second `'` is not an open quote, because we see that *aide* is some text. But getting a good algorithm that has good performance is a bit tricky. You can't assume that `'` followed by `*` is always an apostrophe: *'this is quoted'* This patch does not fix (b).
Diffstat (limited to 'src/Text/Pandoc/Writers/ConTeXt.hs')
0 files changed, 0 insertions, 0 deletions