Debian Codegraph @

texmf-dist/tex/generic/markdown/markdownthemewitiko_markdown_defaults.tex

raw
1 %%
2 %% This is file `markdownthemewitiko_markdown_defaults.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% markdown.dtx (with options: `themes-witiko-markdown-defaults-tex')
8 %%
9 %% Copyright (C) 2016-2026 Vít Starý Novotný, Andrej Genčur
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3c
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %%
16 %% http://www.latex-project.org/lppl.txt
17 %%
18 %% This work has the LPPL maintenance status `maintained'.
19 %% The Current Maintainer of this work is Vít Starý Novotný.
20 %%
21 %% Send bug reports, requests for additions and questions
22 %% either to the GitHub issue tracker at
23 %%
24 %% https://github.com/Witiko/markdown/issues
25 %%
26 %% or to the e-mail address <[email protected]>.
27 %%
28 %% MODIFICATION ADVICE:
29 %%
30 %% If you want to customize this file, it is best to make a copy of
31 %% the source file(s) from which it was produced. Use a different
32 %% name for your copy(ies) and modify the copy(ies); this will ensure
33 %% that your modifications do not get overwritten when you install a
34 %% new release of the standard system. You should also ensure that
35 %% your modified source file does not generate any modified file with
36 %% the same name as a standard file.
37 %%
38 %% You will also need to produce your own, suitably named, .ins file to
39 %% control the generation of files from your source file; this file
40 %% should contain your own preambles for the files it generates, not
41 %% those in the standard .ins files.
42 %%
43 %% The names of the source files used are shown above.
44 %%
45 \def\markdownRendererInterblockSeparatorPrototype{\par}%
46 \def\markdownRendererParagraphSeparatorPrototype{%
47 \markdownRendererInterblockSeparator}%
48 \def\markdownRendererHardLineBreakPrototype{\hfil\break}%
49 \def\markdownRendererSoftLineBreakPrototype{ }%
50 \let\markdownRendererEllipsisPrototype\dots
51 \def\markdownRendererNbspPrototype{~}%
52 \def\markdownRendererLeftBracePrototype{\char`\{}%
53 \def\markdownRendererRightBracePrototype{\char`\}}%
54 \def\markdownRendererDollarSignPrototype{\char`$}%
55 \def\markdownRendererPercentSignPrototype{\char`\%}%
56 \def\markdownRendererAmpersandPrototype{\&}%
57 \def\markdownRendererUnderscorePrototype{\char`_}%
58 \def\markdownRendererHashPrototype{\char`\#}%
59 \def\markdownRendererCircumflexPrototype{\char`^}%
60 \def\markdownRendererBackslashPrototype{\char`\\}%
61 \def\markdownRendererTildePrototype{\char`~}%
62 \def\markdownRendererPipePrototype{|}%
63 \def\markdownRendererCodeSpanPrototype#1{{\tt#1}}%
64 \def\markdownRendererLinkPrototype#1#2#3#4{#2}%
65 \def\markdownRendererContentBlockPrototype#1#2#3#4{%
66 \markdownInput{#3}}%
67 \def\markdownRendererContentBlockOnlineImagePrototype{%
68 \markdownRendererImage}%
69 \def\markdownRendererContentBlockCodePrototype#1#2#3#4#5{%
70 \markdownRendererInputFencedCode{#3}{#2}{#2}}%
71 \def\markdownRendererImagePrototype#1#2#3#4{#2}%
72 \def\markdownRendererUlBeginPrototype{}%
73 \def\markdownRendererUlBeginTightPrototype{}%
74 \def\markdownRendererUlItemPrototype{}%
75 \def\markdownRendererUlItemEndPrototype{}%
76 \def\markdownRendererUlEndPrototype{}%
77 \def\markdownRendererUlEndTightPrototype{}%
78 \def\markdownRendererOlBeginPrototype{}%
79 \def\markdownRendererOlBeginTightPrototype{}%
80 \def\markdownRendererFancyOlBeginPrototype#1#2{%
81 \markdownRendererOlBegin}%
82 \def\markdownRendererFancyOlBeginTightPrototype#1#2{%
83 \markdownRendererOlBeginTight}%
84 \def\markdownRendererOlItemPrototype{}%
85 \def\markdownRendererOlItemWithNumberPrototype#1{}%
86 \def\markdownRendererOlItemEndPrototype{}%
87 \def\markdownRendererFancyOlItemPrototype{\markdownRendererOlItem}%
88 \def\markdownRendererFancyOlItemWithNumberPrototype{%
89 \markdownRendererOlItemWithNumber}%
90 \def\markdownRendererFancyOlItemEndPrototype{}%
91 \def\markdownRendererOlEndPrototype{}%
92 \def\markdownRendererOlEndTightPrototype{}%
93 \def\markdownRendererFancyOlEndPrototype{\markdownRendererOlEnd}%
94 \def\markdownRendererFancyOlEndTightPrototype{%
95 \markdownRendererOlEndTight}%
96 \def\markdownRendererDlBeginPrototype{}%
97 \def\markdownRendererDlBeginTightPrototype{}%
98 \def\markdownRendererDlItemPrototype#1{#1}%
99 \def\markdownRendererDlItemEndPrototype{}%
100 \def\markdownRendererDlDefinitionBeginPrototype{}%
101 \def\markdownRendererDlDefinitionEndPrototype{\par}%
102 \def\markdownRendererDlEndPrototype{}%
103 \def\markdownRendererDlEndTightPrototype{}%
104 \def\markdownRendererEmphasisPrototype#1{{\it#1}}%
105 \def\markdownRendererStrongEmphasisPrototype#1{{\bf#1}}%
106 \def\markdownRendererBlockQuoteBeginPrototype{\begingroup\it}%
107 \def\markdownRendererBlockQuoteEndPrototype{\endgroup\par}%
108 \def\markdownRendererLineBlockBeginPrototype{\begingroup\parindent=0pt}%
109 \def\markdownRendererLineBlockEndPrototype{\endgroup}%
110 \def\markdownRendererInputVerbatimPrototype#1{%
111 \par{\tt\input#1\relax{}}\par}%
112 \def\markdownRendererInputFencedCodePrototype#1#2#3{%
113 \markdownRendererInputVerbatim{#1}}%
114 \def\markdownRendererHeadingOnePrototype#1{#1}%
115 \def\markdownRendererHeadingTwoPrototype#1{#1}%
116 \def\markdownRendererHeadingThreePrototype#1{#1}%
117 \def\markdownRendererHeadingFourPrototype#1{#1}%
118 \def\markdownRendererHeadingFivePrototype#1{#1}%
119 \def\markdownRendererHeadingSixPrototype#1{#1}%
120 \def\markdownRendererThematicBreakPrototype{}%
121 \def\markdownRendererNotePrototype#1{#1}%
122 \def\markdownRendererCitePrototype#1{}%
123 \def\markdownRendererTextCitePrototype#1{}%
124 \def\markdownRendererTickedBoxPrototype{[X]}%
125 \def\markdownRendererHalfTickedBoxPrototype{[/]}%
126 \def\markdownRendererUntickedBoxPrototype{[ ]}%
127 \def\markdownRendererStrikeThroughPrototype#1{#1}%
128 \def\markdownRendererSuperscriptPrototype#1{#1}%
129 \def\markdownRendererSubscriptPrototype#1{#1}%
130 \def\markdownRendererDisplayMathPrototype#1{$$#1$$}%
131 \def\markdownRendererInlineMathPrototype#1{$#1$}%
132 \ExplSyntaxOn
133 \cs_gset:Npn
134 \markdownRendererHeaderAttributeContextBeginPrototype
135 {
136 \group_begin:
137 \color_group_begin:
138 }
139 \cs_gset:Npn
140 \markdownRendererHeaderAttributeContextEndPrototype
141 {
142 \color_group_end:
143 \group_end:
144 }
145 \cs_gset_eq:NN
146 \markdownRendererBracketedSpanAttributeContextBeginPrototype
147 \markdownRendererHeaderAttributeContextBeginPrototype
148 \cs_gset_eq:NN
149 \markdownRendererBracketedSpanAttributeContextEndPrototype
150 \markdownRendererHeaderAttributeContextEndPrototype
151 \cs_gset_eq:NN
152 \markdownRendererFencedDivAttributeContextBeginPrototype
153 \markdownRendererHeaderAttributeContextBeginPrototype
154 \cs_gset_eq:NN
155 \markdownRendererFencedDivAttributeContextEndPrototype
156 \markdownRendererHeaderAttributeContextEndPrototype
157 \cs_gset_eq:NN
158 \markdownRendererFencedCodeAttributeContextBeginPrototype
159 \markdownRendererHeaderAttributeContextBeginPrototype
160 \cs_gset_eq:NN
161 \markdownRendererFencedCodeAttributeContextEndPrototype
162 \markdownRendererHeaderAttributeContextEndPrototype
163 \cs_gset:Npn
164 \markdownRendererReplacementCharacterPrototype
165 { \codepoint_str_generate:n { fffd } }
166 \ExplSyntaxOff
167 \def\markdownRendererSectionBeginPrototype{}%
168 \def\markdownRendererSectionEndPrototype{}%
169 \ExplSyntaxOn
170 \cs_gset:Npn
171 \markdownRendererWarningPrototype
172 #1#2#3#4
173 {
174 \tl_set:Nn
175 \l_tmpa_tl
176 { #2 }
177 \tl_if_empty:nF
178 { #4 }
179 {
180 \tl_put_right:Nn
181 \l_tmpa_tl
182 { \iow_newline: #4 }
183 }
184 \exp_args:NV
185 \markdownWarning
186 \l_tmpa_tl
187 }
188 \ExplSyntaxOff
189 \def\markdownRendererErrorPrototype#1#2#3#4{%
190 \markdownError{#2}{#4}}%
191 \def\markdownRendererInlineHtmlProcessingInstructionPrototype{%
192 \markdownRendererInlineHtmlTagPrototype}%
193 \def\markdownRendererInlineHtmlDeclarationPrototype{%
194 \markdownRendererInlineHtmlTagPrototype}%
195 \def\markdownRendererInlineHtmlCdataSectionPrototype{%
196 \markdownRendererInlineHtmlTagPrototype}%
197 \def\markdownRendererInlineHtmlOpenTagPrototype{%
198 \markdownRendererInlineHtmlTagPrototype}%
199 \def\markdownRendererInlineHtmlCloseTagPrototype{%
200 \markdownRendererInlineHtmlTagPrototype}%
201 \def\markdownRendererInlineHtmlEmptyTagPrototype{%
202 \markdownRendererInlineHtmlTagPrototype}%
203 \def\markdownRendererInputBlockHtmlCdataElementPrototype{%
204 \markdownRendererInputBlockHtmlElementPrototype}%
205 \def\markdownRendererInputBlockHtmlProcessingInstructionPrototype{%
206 \markdownRendererInputBlockHtmlElementPrototype}%
207 \def\markdownRendererInputBlockHtmlDeclarationPrototype{%
208 \markdownRendererInputBlockHtmlElementPrototype}%
209 \def\markdownRendererInputBlockHtmlCdataSectionPrototype{%
210 \markdownRendererInputBlockHtmlElementPrototype}%
211 \def\markdownRendererInputBlockHtmlPcdataElementPrototype{%
212 \markdownRendererInputBlockHtmlElementPrototype}%
213 \def\markdownRendererBlockHtmlCommentPrototype{%
214 \markdownRendererInlineHtmlCommentPrototype}%
215 \def\markdownRendererBlockHtmlStandaloneTagPrototype{%
216 \markdownRendererInlineHtmlTagPrototype}%
217 \ExplSyntaxOn
218 \cs_new:Nn
219 \__markdown_plain_tex_default_input_raw_inline:nn
220 {
221 \str_case:nn
222 { #2 }
223 {
224 { md } { \markdownInput{#1} }
225 { tex } { \markdownEscape{#1} \unskip }
226 }
227 }
228 \cs_new:Nn
229 \__markdown_plain_tex_default_input_raw_block:nn
230 {
231 \str_case:nn
232 { #2 }
233 {
234 { md } { \markdownInput{#1} }
235 { tex } { \markdownEscape{#1} }
236 }
237 }
238 \cs_gset:Npn
239 \markdownRendererInputRawInlinePrototype#1#2
240 {
241 \__markdown_plain_tex_default_input_raw_inline:nn
242 { #1 }
243 { #2 }
244 }
245 \cs_gset:Npn
246 \markdownRendererInputRawBlockPrototype#1#2
247 {
248 \__markdown_plain_tex_default_input_raw_block:nn
249 { #1 }
250 { #2 }
251 }
252 \seq_new:N \g__markdown_jekyll_data_datatypes_seq
253 \tl_const:Nn \c__markdown_jekyll_data_sequence_tl { sequence }
254 \tl_const:Nn \c__markdown_jekyll_data_mapping_tl { mapping }
255 \tl_const:Nn \c__markdown_jekyll_data_scalar_tl { scalar }
256 \seq_new:N \g__markdown_jekyll_data_wildcard_absolute_address_seq
257 \cs_new:Nn \__markdown_jekyll_data_push_address_segment:n
258 {
259 \seq_if_empty:NF
260 \g__markdown_jekyll_data_datatypes_seq
261 {
262 \seq_get_right:NN
263 \g__markdown_jekyll_data_datatypes_seq
264 \l_tmpa_tl
265 \str_if_eq:NNTF
266 \l_tmpa_tl
267 \c__markdown_jekyll_data_sequence_tl
268 {
269 \seq_put_right:Nn
270 \g__markdown_jekyll_data_wildcard_absolute_address_seq
271 { * }
272 }
273 {
274 \seq_put_right:Nn
275 \g__markdown_jekyll_data_wildcard_absolute_address_seq
276 { #1 }
277 }
278 }
279 }
280 \tl_new:N \g__markdown_jekyll_data_wildcard_absolute_address_tl
281 \tl_new:N \g__markdown_jekyll_data_wildcard_relative_address_tl
282 \cs_new:Nn \__markdown_jekyll_data_concatenate_address:NN
283 {
284 \seq_pop_left:NN #1 \l_tmpa_tl
285 \tl_set:Nx #2 { / \seq_use:Nn #1 { / } }
286 \seq_put_left:NV #1 \l_tmpa_tl
287 }
288 \cs_new:Nn \__markdown_jekyll_data_update_address_tls:
289 {
290 \__markdown_jekyll_data_concatenate_address:NN
291 \g__markdown_jekyll_data_wildcard_absolute_address_seq
292 \g__markdown_jekyll_data_wildcard_absolute_address_tl
293 \seq_get_right:NN
294 \g__markdown_jekyll_data_wildcard_absolute_address_seq
295 \g__markdown_jekyll_data_wildcard_relative_address_tl
296 }
297 \cs_new:Nn \__markdown_jekyll_data_push:nN
298 {
299 \__markdown_jekyll_data_push_address_segment:n
300 { #1 }
301 \seq_put_right:NV
302 \g__markdown_jekyll_data_datatypes_seq
303 #2
304 \__markdown_jekyll_data_update_address_tls:
305 }
306 \cs_new:Nn \__markdown_jekyll_data_pop:
307 {
308 \seq_pop_right:NN
309 \g__markdown_jekyll_data_wildcard_absolute_address_seq
310 \l_tmpa_tl
311 \seq_pop_right:NN
312 \g__markdown_jekyll_data_datatypes_seq
313 \l_tmpa_tl
314 \__markdown_jekyll_data_update_address_tls:
315 }
316 \cs_new:Nn \__markdown_jekyll_data_set_keyval_known:nn
317 {
318 \keys_set_known:nn
319 { markdown/jekyllData }
320 { { #1 } = { #2 } }
321 }
322 \cs_generate_variant:Nn
323 \__markdown_jekyll_data_set_keyval_known:nn
324 { Vn }
325 \cs_new:Nn \__markdown_jekyll_data_set_keyvals_known:nn
326 {
327 \__markdown_jekyll_data_push:nN
328 { #1 }
329 \c__markdown_jekyll_data_scalar_tl
330 \__markdown_jekyll_data_set_keyval_known:Vn
331 \g__markdown_jekyll_data_wildcard_absolute_address_tl
332 { #2 }
333 \__markdown_jekyll_data_set_keyval_known:Vn
334 \g__markdown_jekyll_data_wildcard_relative_address_tl
335 { #2 }
336 \__markdown_jekyll_data_pop:
337 }
338 \def\markdownRendererJekyllDataSequenceBeginPrototype#1#2{
339 \__markdown_jekyll_data_push:nN
340 { #1 }
341 \c__markdown_jekyll_data_sequence_tl
342 }
343 \def\markdownRendererJekyllDataMappingBeginPrototype#1#2{
344 \__markdown_jekyll_data_push:nN
345 { #1 }
346 \c__markdown_jekyll_data_mapping_tl
347 }
348 \def\markdownRendererJekyllDataSequenceEndPrototype{
349 \__markdown_jekyll_data_pop:
350 }
351 \def\markdownRendererJekyllDataMappingEndPrototype{
352 \__markdown_jekyll_data_pop:
353 }
354 \def\markdownRendererJekyllDataBooleanPrototype#1#2{
355 \__markdown_jekyll_data_set_keyvals_known:nn
356 { #1 }
357 { #2 }
358 }
359 \def\markdownRendererJekyllDataEmptyPrototype#1{}
360 \def\markdownRendererJekyllDataNumberPrototype#1#2{
361 \__markdown_jekyll_data_set_keyvals_known:nn
362 { #1 }
363 { #2 }
364 }
365 \def\markdownRendererJekyllDataProgrammaticStringPrototype#1#2{}
366 \def\markdownRendererJekyllDataTypographicStringPrototype#1#2{
367 \__markdown_jekyll_data_set_keyvals_known:nn
368 { #1 }
369 { #2 }
370 }
371 \__markdown_with_various_cases:nn
372 { jekyllDataKeyValue }
373 {
374 \keys_define:nn
375 { markdown/options }
376 {
377 #1 .code:n = {
378 \__markdown_route_jekyll_data_to_key_values:n
379 { ##1 }
380 },
381 #1 .value_required:n = { false },
382 #1 .default:n = { },
383 }
384 }
385 \seq_new:N
386 \l__markdown_jekyll_data_current_position_seq
387 \tl_new:N
388 \l__markdown_jekyll_data_current_position_tl
389 \cs_new:Nn
390 \__markdown_route_jekyll_data_to_key_values:n
391 {
392 \markdownSetup
393 {
394 renderers = {
395 jekyllData(Sequence|Mapping)Begin = {
396 \bool_lazy_and:nnTF
397 {
398 \seq_if_empty_p:N
399 \l__markdown_jekyll_data_current_position_seq
400 }
401 {
402 \str_if_eq_p:nn
403 { ##1 }
404 { null }
405 }
406 {
407 \tl_if_empty:nF
408 { #1 }
409 {
410 \seq_put_right:Nn
411 \l__markdown_jekyll_data_current_position_seq
412 { #1 }
413 }
414 }
415 {
416 \seq_put_right:Nn
417 \l__markdown_jekyll_data_current_position_seq
418 { ##1 }
419 }
420 },
421 jekyllData(Sequence|Mapping)End = {
422 \seq_pop_right:NN
423 \l__markdown_jekyll_data_current_position_seq
424 \l_tmpa_tl
425 },
426 jekyllDataBoolean = {
427 \tl_set:Nx
428 \l__markdown_jekyll_data_current_position_tl
429 {
430 \seq_use:Nn
431 \l__markdown_jekyll_data_current_position_seq
432 { / }
433 }
434 \keys_if_exist:VnTF
435 \l__markdown_jekyll_data_current_position_tl
436 { ##1 / boolean }
437 {
438 \__markdown_keys_set:xn
439 {
440 \tl_use:N
441 \l__markdown_jekyll_data_current_position_tl
442 / ##1 / boolean
443 }
444 { ##2 }
445 }
446 {
447 \__markdown_keys_set:xn
448 {
449 \tl_use:N
450 \l__markdown_jekyll_data_current_position_tl
451 / ##1
452 }
453 { ##2 }
454 }
455 },
456 jekyllDataNumber = {
457 \tl_set:Nx
458 \l__markdown_jekyll_data_current_position_tl
459 {
460 \seq_use:Nn
461 \l__markdown_jekyll_data_current_position_seq
462 { / }
463 }
464 \keys_if_exist:VnTF
465 \l__markdown_jekyll_data_current_position_tl
466 { ##1 / number }
467 {
468 \__markdown_keys_set:xn
469 {
470 \tl_use:N
471 \l__markdown_jekyll_data_current_position_tl
472 / ##1 / number
473 }
474 { ##2 }
475 }
476 {
477 \__markdown_keys_set:xn
478 {
479 \tl_use:N
480 \l__markdown_jekyll_data_current_position_tl
481 / ##1
482 }
483 { ##2 }
484 }
485 },
486 jekyllDataEmpty = {
487 \tl_set:Nx
488 \l__markdown_jekyll_data_current_position_tl
489 {
490 \seq_use:Nn
491 \l__markdown_jekyll_data_current_position_seq
492 { / }
493 }
494 \keys_if_exist:VnTF
495 \l__markdown_jekyll_data_current_position_tl
496 { ##1 / empty }
497 {
498 \keys_set:xn
499 {
500 \tl_use:N
501 \l__markdown_jekyll_data_current_position_tl
502 / ##1
503 }
504 { empty }
505 }
506 {
507 \keys_set:Vn
508 \l__markdown_jekyll_data_current_position_tl
509 { ##1 }
510 }
511 },
512 jekyllDataTypographicString = {
513 \tl_set:Nx
514 \l__markdown_jekyll_data_current_position_tl
515 {
516 \seq_use:Nn
517 \l__markdown_jekyll_data_current_position_seq
518 { / }
519 }
520 \keys_if_exist:VnTF
521 \l__markdown_jekyll_data_current_position_tl
522 { ##1 / typographicString }
523 {
524 \__markdown_keys_set:xn
525 {
526 \tl_use:N
527 \l__markdown_jekyll_data_current_position_tl
528 / ##1 / typographicString
529 }
530 { ##2 }
531 }
532 {
533 \keys_if_exist:VnTF
534 \l__markdown_jekyll_data_current_position_tl
535 { ##1 / programmaticString }
536 {
537 \__markdown_keys_set_known:xn
538 {
539 \tl_use:N
540 \l__markdown_jekyll_data_current_position_tl
541 / ##1
542 }
543 { ##2 }
544 }
545 {
546 \__markdown_keys_set:xn
547 {
548 \tl_use:N
549 \l__markdown_jekyll_data_current_position_tl
550 / ##1
551 }
552 { ##2 }
553 }
554 }
555 },
556 jekyllDataProgrammaticString = {
557 \tl_set:Nx
558 \l__markdown_jekyll_data_current_position_tl
559 {
560 \seq_use:Nn
561 \l__markdown_jekyll_data_current_position_seq
562 { / }
563 }
564 \keys_if_exist:VnT
565 \l__markdown_jekyll_data_current_position_tl
566 { ##1 / programmaticString }
567 {
568 \__markdown_keys_set:xn
569 {
570 \tl_use:N
571 \l__markdown_jekyll_data_current_position_tl
572 / ##1 / programmaticString
573 }
574 { ##2 }
575 }
576 },
577 },
578 }
579 }
580 \cs_new:Nn
581 \__markdown_keys_set:nn
582 {
583 \keys_set:nn
584 { }
585 { { #1 } = { #2 } }
586 }
587 \cs_new:Nn
588 \__markdown_keys_set_known:nn
589 {
590 \keys_set_known:nn
591 { }
592 { { #1 } = { #2 } }
593 }
594 \cs_generate_variant:Nn
595 \__markdown_keys_set:nn
596 { xn }
597 \cs_generate_variant:Nn
598 \__markdown_keys_set_known:nn
599 { xn }
600 \cs_generate_variant:Nn
601 \keys_set:nn
602 { xn, Vn }
603 \prg_generate_conditional_variant:Nnn
604 \keys_if_exist:nn
605 { Vn }
606 { T, TF }
607 \ExplSyntaxOff
608 \endinput
609 %%
610 %% End of file `markdownthemewitiko_markdown_defaults.tex'.