diff options
| author | Albert Krewinkel <[email protected]> | 2023-03-19 13:44:59 +0100 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2023-03-19 15:09:23 +0100 |
| commit | 7743c5287a54abe71da8fb316a34cb9f1f37c358 (patch) | |
| tree | 9f3859e6badf29a78bbbd5b85ee4efed62ab7789 /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs | |
| parent | 07c56322c24062082b798961573f0dbb22c4937b (diff) | |
Lua: add info on when functions became available in pandoc
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs index 73419633f..266e502c6 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Structure.hs @@ -15,11 +15,12 @@ module Text.Pandoc.Lua.Module.Structure import Control.Applicative ((<|>), optional) import Data.Default (Default (..)) import Data.Maybe (fromMaybe) +import Data.Version (makeVersion) import HsLua ( DocumentedFunction, LuaError, Module (..), Peeker , (###), (<#>), (=#>), (#?) , defun, functionResult, getfield, isnil, lastly, liftLua , opt, liftPure, parameter , peekBool, peekIntegral - , peekFieldRaw, peekText, pop, pushIntegral, top ) + , peekFieldRaw, peekText, pop, pushIntegral, since, top ) import Text.Pandoc.Chunks ( ChunkedDoc (..), PathTemplate (..) , tocToList, splitIntoChunks ) import Text.Pandoc.Definition (Pandoc (..), Block) @@ -45,10 +46,10 @@ documentedModule = Module "hierarchical sections and the table of contents." , moduleFields = [] , moduleFunctions = - [ make_sections - , slide_level - , split_into_chunks - , table_of_contents + [ make_sections `since` makeVersion [3,0] + , slide_level `since` makeVersion [3,0] + , split_into_chunks `since` makeVersion [3,0] + , table_of_contents `since` makeVersion [3,0] ] , moduleOperations = [] , moduleTypeInitializers = [] |
