aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-02-02 18:21:29 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-02 21:04:30 -0800
commitf84512228e16e82cfb2197262847974905fb9b29 (patch)
tree25a249c6969c63ee0b255b87ccb4ce80fb0d9266 /doc
parent61b108d52789f20fb03c4f8a74719c1d53021c91 (diff)
downloadpandoc-f84512228e16e82cfb2197262847974905fb9b29.tar.gz
Improve docs for directory, normalize
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 33c0d27bd..0c86d6109 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -3395,7 +3395,8 @@ environment variable.
### directory (filepath) {#pandoc.path.directory}
-Get the directory name; move up one level.
+Gets the directory name, i.e., removes the last directory
+separator and everything after from the given path.
Parameters:
@@ -3489,8 +3490,10 @@ Returns:
Normalizes a path.
-- `//` outside of the drive can be made blank
-- `/` becomes the `path.separator`
+- `//` makes sense only as part of a (Windows) network drive;
+ elsewhere, multiple slashes are reduced to a single
+ `path.separator` (platform dependent).
+- `/` becomes `path.separator` (platform dependent)
- `./` -\> ''
- an empty path becomes `.`