diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-01 19:49:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-01 19:49:44 +0000 |
commit | 90ce0701efdeb477c5832baea015d4c20b99d3ee (patch) | |
tree | 18315e142e806f8c634358c2750a56ba9514da8a /Master/texmf-dist/scripts | |
parent | 0103a9d41473d542650463023e5ac4d4eb18c5ff (diff) |
markdown (1oct22)
git-svn-id: svn://tug.org/texlive/trunk@64570 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rw-r--r-- | Master/texmf-dist/scripts/markdown/markdown-cli.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/markdown/markdown-cli.lua b/Master/texmf-dist/scripts/markdown/markdown-cli.lua index b02228fe790..d4644532948 100644 --- a/Master/texmf-dist/scripts/markdown/markdown-cli.lua +++ b/Master/texmf-dist/scripts/markdown/markdown-cli.lua @@ -58,7 +58,7 @@ -- those in the standard .ins files. -- local metadata = { - version = "2.16.1-0-gf8a4bea", + version = "2.17.0-0-g6428569", comment = "A module for the conversion from markdown to plain TeX", author = "John MacFarlane, Hans Hagen, Vít Novotný", copyright = {"2009-2016 John MacFarlane, Hans Hagen", @@ -80,6 +80,7 @@ defaultOptions.contentBlocks = false defaultOptions.contentBlocksLanguageMap = "markdown-languages.json" defaultOptions.definitionLists = false defaultOptions.eagerCache = true +defaultOptions.extensions = {} defaultOptions.expectJekyllData = false defaultOptions.fancyLists = false defaultOptions.fencedCode = false @@ -153,6 +154,11 @@ for i = 1, #arg do options[key] = (value == "true") elseif default_type == "number" then options[key] = tonumber(value) + elseif default_type == "table" then + options[key] = {} + for item in value:gmatch("[^ ,]+") do + table.insert(options[key], item) + end else if default_type ~= "string" then if default_type == "nil" then @@ -188,7 +194,7 @@ end local input if input_filename then local input_file = assert(io.open(input_filename, "r"), - [[could not open file "]] .. input_filename .. [[" for reading]]) + [[Could not open file "]] .. input_filename .. [[" for reading]]) input = assert(input_file:read("*a")) assert(input_file:close()) else @@ -212,7 +218,7 @@ local output = convert(input:gsub("\r\n?", "\n") .. "\n") if output_filename then local output_file = assert(io.open(output_filename, "w"), - [[could not open file "]] .. output_filename .. [[" for writing]]) + [[Could not open file "]] .. output_filename .. [[" for writing]]) assert(output_file:write(output)) assert(output_file:close()) else |