John MacFarlane
5f33d2e0cd
Another try at test-pandoc-utils.lua on windows.
2018-05-08 22:32:44 -07:00
John MacFarlane
691f38f3d6
test-pandoc-utils.lua - add diagnostic for windows test.
2018-05-08 22:08:23 -07:00
John MacFarlane
9f2af30c06
More adjustments to test-pandoc-utils.lua.
...
We need to find something that will work on windows.
2018-05-08 12:28:12 -07:00
John MacFarlane
fa4f3c5c17
test-pandoc-utils.lua - use tr instead of sed.
...
It should be installed on all *nix systems.
2018-05-08 11:51:50 -07:00
John MacFarlane
83fb9d5495
test-pandoc-utils.lua: workaround some local differences in 'echo'.
2018-05-08 11:22:10 -07:00
John MacFarlane
e6d85927ea
test-pandoc-utils.lua: remove problems with missing /bin/false
.
...
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.
2018-05-08 11:07:57 -07:00
Albert Krewinkel
59a4745457
Lua modules: add function pandoc.utils.hierarchicalize
...
Convert list of Pandoc blocks into (hierarchical) list of Elements.
2017-12-23 23:29:24 +01:00
Albert Krewinkel
2c66a42ab8
Lua modules: add function pandoc.utils.normalize_date
...
The function parses a date and converts it (if possible) to "YYYY-MM-DD"
format.
2017-12-23 13:43:22 +01:00
Albert Krewinkel
35f0567a8f
Lua modules: add function pandoc.utils.to_roman_numeral
...
The function allows conversion of numbers below 4000 into roman
numerals.
2017-12-23 13:42:35 +01:00
Albert Krewinkel
23edb958db
Lua modules: add stringify function to pandoc.utils
...
The new function `pandoc.utils.stringify` converts any AST element to a
string with formatting removed.
2017-12-22 20:09:37 +01:00
Albert Krewinkel
299e452463
Test more pandoc Lua module functions
...
The functions `sha1`, `read`, and `pipe` are now tested.
Change: minor
2017-12-20 21:36:41 +01:00