summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/markdown
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-29 21:00:05 +0000
committerKarl Berry <karl@freefriends.org>2022-07-29 21:00:05 +0000
commitc2d2eba4dbcbb6d9555b487010e3486c5b37dddc (patch)
treec9b44160bd004bfcdfb2ed7e81cf6d318aee6622 /Master/texmf-dist/scripts/markdown
parenta6300ce69a231968267f6f256bf80298c385d938 (diff)
markdown (28jul22)
git-svn-id: svn://tug.org/texlive/trunk@64000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/markdown')
-rw-r--r--Master/texmf-dist/scripts/markdown/markdown-cli.lua42
1 files changed, 21 insertions, 21 deletions
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 <witiko@mail.muni.cz>.
---
+--
-- 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: <https://github.com/witiko/markdown>]]
-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