From f84512228e16e82cfb2197262847974905fb9b29 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 2 Feb 2021 18:21:29 +0100 Subject: Improve docs for directory, normalize --- doc/lua-filters.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc') 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 `.` -- cgit v1.2.3