diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-02-02 18:21:29 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-02-02 21:04:30 -0800 |
commit | f84512228e16e82cfb2197262847974905fb9b29 (patch) | |
tree | 25a249c6969c63ee0b255b87ccb4ce80fb0d9266 | |
parent | 61b108d52789f20fb03c4f8a74719c1d53021c91 (diff) | |
download | pandoc-f84512228e16e82cfb2197262847974905fb9b29.tar.gz |
Improve docs for directory, normalize
-rw-r--r-- | doc/lua-filters.md | 9 |
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 `.` |