From 69c679a19d6d919414bc1268718ab445e225d930 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 3 Apr 2023 21:32:50 +0000
Subject: markdown (3apr23)

git-svn-id: svn://tug.org/texlive/trunk@66751 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/generic/markdown/markdown.tex   | 98 +++++++++++++++++++++-
 1 file changed, 94 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/tex/generic/markdown/markdown.tex')

diff --git a/Master/texmf-dist/tex/generic/markdown/markdown.tex b/Master/texmf-dist/tex/generic/markdown/markdown.tex
index d8cb36c75f1..0d71a2f98e3 100644
--- a/Master/texmf-dist/tex/generic/markdown/markdown.tex
+++ b/Master/texmf-dist/tex/generic/markdown/markdown.tex
@@ -439,6 +439,10 @@
   { hybrid }
   { boolean }
   { false }
+\__markdown_add_lua_option:nnn
+  { inlineCodeAttributes }
+  { boolean }
+  { false }
 \__markdown_add_lua_option:nnn
   { inlineFootnotes }
   { boolean }
@@ -451,6 +455,10 @@
   { jekyllData }
   { boolean }
   { false }
+\__markdown_add_lua_option:nnn
+  { linkAttributes }
+  { boolean }
+  { false }
 \__markdown_add_lua_option:nnn
   { lineBlocks }
   { boolean }
@@ -527,6 +535,14 @@
   { texMathDollars }
   { boolean }
   { false }
+\__markdown_add_lua_option:nnn
+  { texMathDoubleBackslash }
+  { boolean }
+  { false }
+\__markdown_add_lua_option:nnn
+  { texMathSingleBackslash }
+  { boolean }
+  { false }
 \__markdown_add_lua_option:nnn
   { tightLists }
   { boolean }
@@ -536,8 +552,8 @@
   { boolean }
   { true }
 \ExplSyntaxOff
-\def\markdownLastModified{2023-02-28}%
-\def\markdownVersion{2.21.0-0-gee15b88}%
+\def\markdownLastModified{2023-04-02}%
+\def\markdownVersion{2.22.0-0-g5a3d0fe}%
 \let\markdownBegin\relax
 \let\markdownEnd\relax
 \let\markdownInput\relax
@@ -866,6 +882,28 @@
   { codeSpan }
   { 1 }
 \ExplSyntaxOff
+\def\markdownRendererCodeSpanAttributeContextBegin{%
+  \markdownRendererCodeSpanAttributeContextBeginPrototype}%
+\ExplSyntaxOn
+\seq_gput_right:Nn
+  \g__markdown_renderers_seq
+  { codeSpanAttributeContextBegin }
+\prop_gput:Nnn
+  \g__markdown_renderer_arities_prop
+  { codeSpanAttributeContextBegin }
+  { 0 }
+\ExplSyntaxOff
+\def\markdownRendererCodeSpanAttributeContextEnd{%
+  \markdownRendererCodeSpanAttributeContextEndPrototype}%
+\ExplSyntaxOn
+\seq_gput_right:Nn
+  \g__markdown_renderers_seq
+  { codeSpanAttributeContextEnd }
+\prop_gput:Nnn
+  \g__markdown_renderer_arities_prop
+  { codeSpanAttributeContextEnd }
+  { 0 }
+\ExplSyntaxOff
 \def\markdownRendererContentBlock{%
   \markdownRendererContentBlockPrototype}%
 \ExplSyntaxOn
@@ -1218,6 +1256,28 @@
   { image }
   { 4 }
 \ExplSyntaxOff
+\def\markdownRendererImageAttributeContextBegin{%
+  \markdownRendererImageAttributeContextBeginPrototype}%
+\ExplSyntaxOn
+\seq_gput_right:Nn
+  \g__markdown_renderers_seq
+  { imageAttributeContextBegin }
+\prop_gput:Nnn
+  \g__markdown_renderer_arities_prop
+  { imageAttributeContextBegin }
+  { 0 }
+\ExplSyntaxOff
+\def\markdownRendererImageAttributeContextEnd{%
+  \markdownRendererImageAttributeContextEndPrototype}%
+\ExplSyntaxOn
+\seq_gput_right:Nn
+  \g__markdown_renderers_seq
+  { imageAttributeContextEnd }
+\prop_gput:Nnn
+  \g__markdown_renderer_arities_prop
+  { imageAttributeContextEnd }
+  { 0 }
+\ExplSyntaxOff
 \def\markdownRendererInterblockSeparator{%
   \markdownRendererInterblockSeparatorPrototype}%
 \ExplSyntaxOn
@@ -1307,6 +1367,28 @@
   { link }
   { 4 }
 \ExplSyntaxOff
+\def\markdownRendererLinkAttributeContextBegin{%
+  \markdownRendererLinkAttributeContextBeginPrototype}%
+\ExplSyntaxOn
+\seq_gput_right:Nn
+  \g__markdown_renderers_seq
+  { linkAttributeContextBegin }
+\prop_gput:Nnn
+  \g__markdown_renderer_arities_prop
+  { linkAttributeContextBegin }
+  { 0 }
+\ExplSyntaxOff
+\def\markdownRendererLinkAttributeContextEnd{%
+  \markdownRendererLinkAttributeContextEndPrototype}%
+\ExplSyntaxOn
+\seq_gput_right:Nn
+  \g__markdown_renderers_seq
+  { linkAttributeContextEnd }
+\prop_gput:Nnn
+  \g__markdown_renderer_arities_prop
+  { linkAttributeContextEnd }
+  { 0 }
+\ExplSyntaxOff
 \def\markdownRendererDocumentBegin{%
   \markdownRendererDocumentBeginPrototype}%
 \ExplSyntaxOn
@@ -2625,8 +2707,16 @@
       "|markdownOptionHelperScriptFileName"}%
     |immediate|write|markdownOutputFileStream{%
       local ran_ok, error = pcall(function()
-        local ran_ok, kpse = pcall(require, "kpse")
-        if ran_ok then kpse.set_program_name("luatex") end
+        local kpse
+        (function()
+          local should_initialize = package.loaded.kpse == nil
+                               or tex.initialize
+          local ran_ok
+          ran_ok, kpse = pcall(require, "kpse")
+          if ran_ok and should_initialize then
+            kpse.set_program_name("luatex")
+          end
+        end)()
         #1
       end)
       if not ran_ok then
-- 
cgit v1.2.3

