mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
[API Change] Rename pandocVersion to pandocVersionText...
and add a new `pandocVersion` value with type `Version`. This is consistent with the type used for `pandocTypesVersion` and allows to use the value where a Version type is required.
This commit is contained in:
committed by
John MacFarlane
parent
e099de1d4d
commit
ddaadc88bc
@@ -21,7 +21,7 @@ import Text.Pandoc.App ( convertWithOpts, defaultOpts, options
|
||||
import Text.Pandoc.Class (runIOorExplode)
|
||||
import Text.Pandoc.Error (handleError)
|
||||
import Text.Pandoc.Lua (runLua, runLuaNoEnv)
|
||||
import Text.Pandoc.Shared (pandocVersion)
|
||||
import Text.Pandoc.Shared (pandocVersionText)
|
||||
import qualified Text.Pandoc.UTF8 as UTF8
|
||||
import PandocCLI.Server
|
||||
|
||||
@@ -45,7 +45,7 @@ main = E.handle (handleError . Left) $ do
|
||||
runLuaInterpreter :: String -> [String] -> IO ()
|
||||
runLuaInterpreter progName args = do
|
||||
let settings = Settings
|
||||
{ settingsVersionInfo = "\nEmbedded in pandoc " <> pandocVersion
|
||||
{ settingsVersionInfo = "\nEmbedded in pandoc " <> pandocVersionText
|
||||
, settingsRunner = runner
|
||||
}
|
||||
runStandalone settings progName args
|
||||
|
||||
Reference in New Issue
Block a user