From f1b55be65f45f3fee0f53dba49d1b338a5588cff Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 21 Mar 2023 05:19:16 +0100 Subject: T.P.Format: add new function `formatFromFilePaths` [API Change] (#8710) * T.P.Format: export `formatFromFilePaths` [API change] * Lua: add function `pandoc.format.from_path` * Update lua-filters.md * The old T.P.App.FormatHeuristics module has been removed. This is an alternative to #8693. --- doc/lua-filters.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index bc99fce27..70670dbe4 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -3703,6 +3703,9 @@ are explicitly passed via the `env` parameter; e.g. return pandoc.cli.repl{ doc = doc } end +**Note**: it seems that the function exits immediately on +Windows, without prompting for user input. + Parameters: `env` @@ -4582,6 +4585,21 @@ Returns: *Since: 3.0* +### from_path {#pandoc.format.from_path} + +`from_path (path)` + +Parameters: + +`path` +: file path, or list of paths (string\|{string,\...}) + +Returns: + +- format determined by heuristic (string\|nil) + +*Since: 3.1.2* + -- cgit v1.2.3