@@ -3376,6 +3376,178 @@ methods and convenience functions.
3377 : Comparison function as described above.
3377 : Comparison function as described above.
3379+# Module pandoc.path
3381+Module for file path manipulations.
3383+## Static Fields {#pandoc.path-fields}
3385+### separator {#pandoc.path.separator}
3387+The character that separates directories.
3389+### search_path_separator {#pandoc.path.search_path_separator}
3391+The character that is used to separate the entries in the `PATH`
3392+environment variable.
3394+## Functions {#pandoc.path-functions}
3396+### directory (filepath) {#pandoc.path.directory}
3398+Get the directory name; move up one level.
3407+- The filepath up to the last directory separator. (string)
3409+### filename (filepath) {#pandoc.path.filename}
3420+- File name part of the input path. (string)
3422+### is_absolute (filepath) {#pandoc.path.is_absolute}
3424+Checks whether a path is absolute, i.e. not fixed to a root.
3433+- `true` iff `filepath` is an absolute path, `false` otherwise.
3436+### is_relative (filepath) {#pandoc.path.is_relative}
3438+Checks whether a path is relative or fixed to a root.
3447+- `true` iff `filepath` is a relative path, `false` otherwise.
3450+### join (filepaths) {#pandoc.path.join}
3452+Join path elements back together by the directory separator.
3457+: path components (list of strings)
3461+- The joined path. (string)
3463+### make_relative (path, root[, unsafe]) {#pandoc.path.make_relative}
3465+Contract a filename, based on a relative path. Note that the
3466+resulting path will usually not introduce `..` paths, as the
3467+presence of symlinks means `../b` may not reach `a/b` if it starts
3468+from `a/c`. For a worked example see [this blog
3469+post](http://neilmitchell.blogspot.co.uk/2015/10/filepaths-are-subtle-symlinks-are-hard.html).
3471+Set `unsafe` to a truthy value to a allow `..` in paths.
3476+: path to be made relative (string)
3479+: root path (string)
3482+: whether to allow `..` in the result. (boolean)
3486+- contracted filename (string)
3488+### normalize (filepath) {#pandoc.path.normalize}
3492+- `//` outside of the drive can be made blank
3493+- `/` becomes the `path.separator`
3495+- an empty path becomes `.`
3504+- The normalized path. (string)
3506+### split (filepath) {#pandoc.path.split}
3508+Splits a path by the directory separator.
3517+- List of all path components. (list of strings)
3519+### split_extension (filepath) {#pandoc.path.split_extension}
3521+Splits the last extension from a file path and returns the parts. The
3522+extension, if present, includes the leading separator; if the path has
3523+no extension, then the empty string is returned as the extension.
3532+- filepath without extension (string)
3534+- extension or empty string (string)
3536+### split_search_path (search_path) {#pandoc.path.split_search_path}
3538+Takes a string and splits it on the `search_path_separator` character.
3539+Blank items are ignored on Windows, and converted to `.` on Posix. On
3540+Windows path elements are stripped of quotes.
3545+: platform-specific search path (string)
3549+- list of directories in search path (list of strings)
3379# Module pandoc.system
3551# Module pandoc.system
3381Access to system information and functionality.
3553Access to system information and functionality.