summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-11-22 21:51:57 +0000
committerKarl Berry <karl@freefriends.org>2024-11-22 21:51:57 +0000
commitb379afeadb4e930cc563c42f32b38dde80e71bd5 (patch)
tree61c69fc4866384256ecadbdaffce10f0a35d6ca0 /Master/texmf-dist/tex/context
parent1d878a05cbb5e1ab5727de69ec766aa0cd7a1b68 (diff)
markdown (22nov24)
git-svn-id: svn://tug.org/texlive/trunk@72932 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context')
-rw-r--r--Master/texmf-dist/tex/context/third/markdown/t-markdown.tex52
1 files changed, 42 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex b/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex
index b374a71e8c8..6c797e45d39 100644
--- a/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex
+++ b/Master/texmf-dist/tex/context/third/markdown/t-markdown.tex
@@ -100,6 +100,8 @@
\__markdown_define_renderers:
\__markdown_define_renderer_prototypes:
}
+\prop_new:N
+ \g__markdown_context_built_in_themes_prop
\ExplSyntaxOff
\def\markdownMakeOther{%
\count0=128\relax
@@ -160,8 +162,19 @@
\cs_gset:Nn
\__markdown_load_theme:nnn
{
- \file_if_exist:nTF
- { t - markdown theme #3.tex }
+ \bool_if:nTF
+ {
+ \bool_lazy_or_p:nn
+ {
+ \prop_if_in_p:Nn
+ \g__markdown_context_built_in_themes_prop
+ { #1 }
+ }
+ {
+ \file_if_exist_p:n
+ { t - markdown theme #3.tex }
+ }
+ }
{
\prop_get:NnNTF
\g__markdown_context_loaded_themes_linenos_prop
@@ -194,11 +207,6 @@
}
}
{
- \msg_info:nnn
- { markdown }
- { loading-context-theme }
- { #1 }
- { #2 }
\prop_gput:Nnx
\g__markdown_context_loaded_themes_linenos_prop
{ #1 }
@@ -207,9 +215,29 @@
\g__markdown_context_loaded_themes_versions_prop
{ #1 }
{ #2 }
- \usemodule
- [ t ]
- [ markdown theme #3 ]
+ \prop_if_in:NnTF
+ \g__markdown_context_built_in_themes_prop
+ { #1 }
+ {
+ \msg_info:nnnn
+ { markdown }
+ { loading-built-in-context-theme }
+ { #1 }
+ { #2 }
+ \prop_item:Nn
+ \g__markdown_context_built_in_themes_prop
+ { #1 }
+ }
+ {
+ \msg_info:nnnn
+ { markdown }
+ { loading-context-theme }
+ { #1 }
+ { #2 }
+ \usemodule
+ [ t ]
+ [ markdown theme #3 ]
+ }
}
}
{
@@ -221,6 +249,10 @@
}
\msg_new:nnn
{ markdown }
+ { loading-built-in-context-theme }
+ { Loading~version~#2~of~built-in~ConTeXt~Markdown~theme~#1 }
+\msg_new:nnn
+ { markdown }
{ loading-context-theme }
{ Loading~version~#2~of~ConTeXt~Markdown~theme~#1 }
\msg_new:nnn