aboutsummaryrefslogtreecommitdiff
path: root/test/lua/test-pandoc-utils.lua
AgeCommit message (Collapse)AuthorFilesLines
2018-05-08Another try at test-pandoc-utils.lua on windows.John MacFarlane1-3/+2
2018-05-08test-pandoc-utils.lua - add diagnostic for windows test.John MacFarlane1-0/+1
2018-05-08More adjustments to test-pandoc-utils.lua.John MacFarlane1-5/+4
We need to find something that will work on windows.
2018-05-08test-pandoc-utils.lua - use tr instead of sed.John MacFarlane1-1/+1
It should be installed on all *nix systems.
2018-05-08test-pandoc-utils.lua: workaround some local differences in 'echo'.John MacFarlane1-2/+2
2018-05-08test-pandoc-utils.lua: remove problems with missing `/bin/false`.John MacFarlane1-13/+22
Previously it was assumed that the system would have `/bin/false` and `/bin/sed`, and these tests were skipped otherwise. On MacOS, these utilities are located in `/usr/bin`. Fixed by just using `sed` and `false` -- these should always be in the path. Removed the "skipping" behavior, replaced with a check for Windows. On Windowns, we use `echo` and `cd`, which should always exist. Not yet checked on Windows.
2017-12-23Lua modules: add function pandoc.utils.hierarchicalizeAlbert Krewinkel1-0/+16
Convert list of Pandoc blocks into (hierarchical) list of Elements.
2017-12-23Lua modules: add function pandoc.utils.normalize_dateAlbert Krewinkel1-1/+9
The function parses a date and converts it (if possible) to "YYYY-MM-DD" format.
2017-12-23Lua modules: add function pandoc.utils.to_roman_numeralAlbert Krewinkel1-0/+9
The function allows conversion of numbers below 4000 into roman numerals.
2017-12-22Lua modules: add stringify function to pandoc.utilsAlbert Krewinkel1-3/+16
The new function `pandoc.utils.stringify` converts any AST element to a string with formatting removed.
2017-12-20Test more pandoc Lua module functionsAlbert Krewinkel1-0/+69
The functions `sha1`, `read`, and `pipe` are now tested. Change: minor