aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-03-21 05:19:16 +0100
committerGitHub <[email protected]>2023-03-20 21:19:16 -0700
commitf1b55be65f45f3fee0f53dba49d1b338a5588cff (patch)
tree2403450d32c5e39eb04539f21e3dc8ad6080c770 /doc
parentb5d54f7f3899ed9d5866abde10008589d7a4ae42 (diff)
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md18
1 files changed, 18 insertions, 0 deletions
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*
+
<!-- END: AUTOGENERATED CONTENT -->
<!-- BEGIN: AUTOGENERATED CONTENT for module pandoc.json -->