aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2023-03-19 13:44:59 +0100
committerAlbert Krewinkel <[email protected]>2023-03-19 15:09:23 +0100
commit7743c5287a54abe71da8fb316a34cb9f1f37c358 (patch)
tree9f3859e6badf29a78bbbd5b85ee4efed62ab7789 /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs
parent07c56322c24062082b798961573f0dbb22c4937b (diff)
Lua: add info on when functions became available in pandoc
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs')
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs
index 2bc9910cd..b4397e2bc 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs
@@ -11,6 +11,7 @@ module Text.Pandoc.Lua.Module.Format
( documentedModule
) where
+import Data.Version (makeVersion)
import HsLua
import Text.Pandoc.Error (PandocError)
import Text.Pandoc.Extensions (getAllExtensions, getDefaultExtensions)
@@ -46,6 +47,7 @@ functions =
, "function does not check if the format is supported, it will return"
, "a fallback list of extensions even for unknown formats."
]
+ `since` makeVersion [3,0]
, defun "all_extensions"
### liftPure getAllExtensions
@@ -58,6 +60,7 @@ functions =
, "can have an effect when reading a format but not when"
, "writing it, or *vice versa*."
]
+ `since` makeVersion [3,0]
, defun "extensions"
### liftPure getExtensionsConfig
@@ -73,4 +76,5 @@ functions =
, "This function can be used to assign a value to the `Extensions`"
, "global in custom readers and writers."
]
+ `since` makeVersion [3,0]
]