aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org
AgeCommit message (Collapse)AuthorFilesLines
2019-01-07Org reader: handle `minlevel` option differently. (#5190)Brian Leung1-1/+6
When `minlevel` exceeds the original minimum level observed in the file to be included, every heading should be shifted rightward.
2019-01-01Org reader: fix self-link parsing regressionAlbert Krewinkel1-0/+4
Fixes a regression introduced by the previous commit.
2019-01-01Org reader: fix treatment of links to imagesAlbert Krewinkel1-13/+17
Links with descriptions which are pointing to images are no longer read as inline images, but as proper links. Fixes: #5191
2018-09-28Parse empty argument array in inline src blocks.leungbk1-0/+7
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-06Org reader: respect export option `p` for planning infoAlbert Krewinkel2-0/+36
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can be controlled via the `p` export option: setting the option to `t` will add all planning information in a *Plain* block below the respective headline.
2018-09-05Org reader: strip planning info from outputAlbert Krewinkel1-0/+25
Planning info is parsed, but not included in the output (as is the default with Emacs Org-mode). Fixes: #4867
2018-07-23Org reader: fix parsers relying on parseFromStringAlbert Krewinkel1-0/+11
Emphasis was not parsed when it followed directly after some block types (e.g., lists). The org reader uses a wrapper for the `parseFromString` function to handle org-specific state. The last position of a character allowed before emphasis was reset incorrectly in this wrapper. Emphasized text was not recognized when placed directly behind a block which the reader parses using `parseFromString`. Fixes: #4784
2018-07-02More spellcheckAlexander Krotov1-1/+1
2018-05-11Removed inadvertently added .orig files from repository.John MacFarlane13-2101/+0
These were added by https://github.com/schrieveslaach/pandoc/commit/96d10c72cc95e56c9e49db3e6db7118e89d1f1e0 Closes #4648.
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane13-0/+2101
Closes #4550.
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane13-0/+26
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-02-26Org reader tests: move citation tests to separate moduleAlbert Krewinkel2-167/+181
2018-02-21Org reader: allow changing emphasis syntaxAlbert Krewinkel1-1/+19
The characters allowed before and after emphasis can be configured via `#+pandoc-emphasis-pre` and `#+pandoc-emphasis-post`, respectively. This allows to change which strings are recognized as emphasized text on a per-document or even per-paragraph basis. The allowed characters must be given as (Haskell) string. #+pandoc-emphasis-pre: "-\t ('\"{" #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}[" If the argument cannot be read as a string, the default value is restored. Closes: #4378
2018-01-19hlint code improvements.John MacFarlane7-58/+58
2017-12-28Text.Pandoc.Class: add insertInFileTree (API change).John MacFarlane1-7/+2
This gives a pure way to insert an ersatz file into a FileTree. In addition, we normalize paths both on insertion and on lookup, so that "foo" and "./foo" will be judged equivalent.
2017-12-28Org smart test: drop superfluous importAlbert Krewinkel1-1/+1
Keeps GHC 7.8 and GHC 7.10 happy.
2017-12-28Org reader: support minlevel option for includesAlbert Krewinkel1-1/+77
The level of headers in included files can be shifted to a higher level by specifying a minimum header level via the `:minlevel` parameter. E.g. `#+include: "tour.org" :minlevel 1` will shift the headers in tour.org such that the topmost headers become level 1 headers. Fixes: #4154
2017-12-28Break-up org reader test fileAlbert Krewinkel12-0/+1998
The org reader test file had grown large, to the point that editor performance was negatively affected in some cases. The tests are spread over multiple submodules, and re-combined into a tasty TestTree in the main org reader test file.