From c2d2eba4dbcbb6d9555b487010e3486c5b37dddc Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 29 Jul 2022 21:00:05 +0000 Subject: markdown (28jul22) git-svn-id: svn://tug.org/texlive/trunk@64000 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/scripts/markdown/markdown-cli.lua | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'Master/texmf-dist/scripts/markdown') diff --git a/Master/texmf-dist/scripts/markdown/markdown-cli.lua b/Master/texmf-dist/scripts/markdown/markdown-cli.lua index cf30fa78c52..03175f910c5 100644 --- a/Master/texmf-dist/scripts/markdown/markdown-cli.lua +++ b/Master/texmf-dist/scripts/markdown/markdown-cli.lua @@ -1,6 +1,6 @@ --- +-- -- Copyright (C) 2009-2016 John MacFarlane, Hans Hagen --- +-- -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and associated documentation files (the -- "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ -- distribute, sublicense, and/or sell copies of the Software, and to -- permit persons to whom the Software is furnished to do so, subject to -- the following conditions: --- +-- -- The above copyright notice and this permission notice shall be included -- in all copies or substantial portions of the Software. --- +-- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,31 +19,31 @@ -- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- +-- -- Copyright (C) 2016-2022 Vít Novotný --- +-- -- This work may be distributed and/or modified under the -- conditions of the LaTeX Project Public License, either version 1.3 -- of this license or (at your option) any later version. -- The latest version of this license is in --- +-- -- http://www.latex-project.org/lppl.txt --- +-- -- and version 1.3 or later is part of all distributions of LaTeX -- version 2005/12/01 or later. --- +-- -- This work has the LPPL maintenance status `maintained'. -- The Current Maintainer of this work is Vít Novotný. --- +-- -- Send bug reports, requests for additions and questions -- either to the GitHub issue tracker at --- +-- -- https://github.com/witiko/markdown/issues --- +-- -- or to the e-mail address . --- +-- -- MODIFICATION ADVICE: --- +-- -- If you want to customize this file, it is best to make a copy of -- the source file(s) from which it was produced. Use a different -- name for your copy(ies) and modify the copy(ies); this will ensure @@ -51,14 +51,14 @@ -- new release of the standard system. You should also ensure that -- your modified source file does not generate any modified file with -- the same name as a standard file. --- +-- -- You will also need to produce your own, suitably named, .ins file to -- control the generation of files from your source file; this file -- should contain your own preambles for the files it generates, not -- those in the standard .ins files. --- +-- local metadata = { - version = "2.15.3-0-g7c8e03d", + version = "2.15.4-0-g4cbe4e3", 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", @@ -106,7 +106,7 @@ defaultOptions.texComments = false defaultOptions.tightLists = true defaultOptions.underscores = true -HELP_STRING = [[ +local HELP_STRING = [[ Usage: texlua ]] .. arg[0] .. [[ [OPTIONS] -- [INPUT_FILE] [OUTPUT_FILE] where OPTIONS are documented in the Lua interface section of the technical Markdown package documentation. @@ -118,7 +118,7 @@ result of the conversion will be read from the standard input. Report bugs to: witiko@mail.muni.cz Markdown package home page: ]] -VERSION_STRING = [[ +local VERSION_STRING = [[ markdown-cli.lua (Markdown) ]] .. metadata.version .. [[ Copyright (C) ]] .. table.concat(metadata.copyright, @@ -143,8 +143,8 @@ for i = 1, #arg do process_options = false goto continue elseif arg[i]:match("=") then - key, value = arg[i]:match("(.-)=(.*)") - default_type = type(defaultOptions[key]) + local key, value = arg[i]:match("(.-)=(.*)") + local default_type = type(defaultOptions[key]) if default_type == "boolean" then options[key] = (value == "true") elseif default_type == "number" then -- cgit v1.2.3