aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
AgeCommit message (Collapse)AuthorFilesLines
2017-04-30Lua filter: fall-back to global filters when none is returnedAlbert Krewinkel1-0/+6
The implicitly defined global filter (i.e. all element filtering functions defined in the global lua environment) is used if no filter is returned from a lua script. This allows to just write top-level functions in order to define a lua filter. E.g function Emph(elem) return pandoc.Strong(elem.content) end
2017-04-23Org reader: allow multi-word arguments to src block paramsAlbert Krewinkel1-0/+9
The reader now correctly parses src block parameter list even if parameter arguments contain multiple words. Closes: #3477
2017-04-23Org reader: stop adding rundoc prefix to src paramsAlbert Krewinkel1-33/+26
Source block parameter names are no longer prefixed with *rundoc*. This was intended to simplify working with the rundoc project, a babel runner. However, the rundoc project is unmaintained, and adding those markers is not the reader's job anyway. The original language that is specified for a source element is now retained as the `data-org-language` attribute and only added if it differs from the translated language.
2017-04-23Org reader: handle line numbering switch for src blocksAlbert Krewinkel1-0/+9
The line-numbering switch that can be given to source blocks (`-n` with an start number as an optional parameter) is parsed and translated to a class/key-value combination used by highlighting and other readers and writers.
2017-04-16Org reader: allow emphasized text to be followed by `[`Albert Krewinkel1-0/+10
Closes: #3577
2017-04-16Org reader: convert markup at beginning of footnotesAlbert Krewinkel1-0/+10
Closes: #3576
2017-04-14Lua filter: allow shorthand functions for math and quotedAlbert Krewinkel1-14/+21
Allow to use functions named `SingleQuoted`, `DoubleQuoted`, `DisplayMath`, and `InlineMath` in filters.
2017-04-13Use lua constructors to push meta valuesAlbert Krewinkel1-2/+6
2017-04-07Lua filter: improve doc filter performanceAlbert Krewinkel1-1/+9
Pandoc elements are pushed and pulled from the lua stack via custom instances.
2017-04-06Ensure correctness of StackValue instancesAlbert Krewinkel1-0/+28
2017-04-02Lua module: add readers submoduleAlbert Krewinkel1-0/+6
Plain text readers are exposed to lua scripts via the `pandoc.reader` submodule, which is further subdivided by format. Converting e.g. a markdown string into a pandoc document is possible from within lua: doc = pandoc.reader.markdown.read_doc("Hello, World!") A `read_block` convenience function is provided for all formats, although it will still parse the whole string but return only the first block as the result. Custom reader options are not supported yet, default options are used for all parsing operations.
2017-03-30Added JATS writer.John MacFarlane1-0/+3
* New module Text.Pandoc.Writer.JATS exporting writeJATS. * New output format `jats`. * Added tests. * Revised manual.
2017-03-23Initial addition of groff ms writer.John MacFarlane1-0/+3
* New module: Text.Pandoc.Writers.Ms. * New template: default.ms. * The writer uses texmath's new eqn writer to convert math to eqn format, so a ms file produced with this writer should be processed with `groff -ms -e` if it contains math.
2017-03-20Lua filters (#3514)Albert Krewinkel1-0/+34
* Add `--lua-filter` option. This works like `--filter` but takes pathnames of special lua filters and uses the lua interpreter baked into pandoc, so that no external interpreter is needed. Note that lua filters are all applied after regular filters, regardless of their position on the command line. * Add Text.Pandoc.Lua, exporting `runLuaFilter`. Add `pandoc.lua` to data files. * Add private module Text.Pandoc.Lua.PandocModule to supply the default lua module. * Add Tests.Lua to tests. * Add data/pandoc.lua, the lua module pandoc imports when processing its lua filters. * Document in MANUAL.txt.
2017-03-15Use tasty-golden for golden tests in Old.John MacFarlane1-39/+52
2017-03-14Command tests: just findPandoc once.John MacFarlane1-4/+4
2017-03-14Removed unneeded import.John MacFarlane1-1/+0
2017-03-14Got rid of distracting warning in test output.John MacFarlane1-2/+2
2017-03-14Small test plumbing improvement.John MacFarlane1-11/+11
2017-03-14Use tasty for tests rather than test-framework.John MacFarlane26-131/+128
2017-03-10Add Muse writer (#3489)Alexander Krotov2-0/+276
* Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests
2017-03-07Speed up Native writer quickcheck tests.John MacFarlane1-2/+4
2017-03-07Small change to unbalanced bracket test to speed up test suite.John MacFarlane1-1/+1
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane24-120/+113
2017-03-01LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane1-1/+1
Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
2017-02-12Add Org writer unit testsAlexander Krotov1-0/+25
2017-02-11Use new warnings throughout the code base.John MacFarlane1-1/+1
2017-02-06Removed --parse-raw and readerParseRaw.John MacFarlane1-1/+1
These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
2017-02-04Consolidated some common functions in Tests.Helper.John MacFarlane3-81/+52
2017-02-04Added new test framework Tests.Command.John MacFarlane1-17/+57
Any files added under test/command will be treated as shell tests (see smart.md for an example). This makes it very easy to add regression tests etc.
2017-02-04Added skeleton for Tests.Command.John MacFarlane1-0/+91
2017-02-04Moved tests/ -> test/.John MacFarlane23-0/+5271