blob: dc8a90917f659aed64c44e1714837debc77adeea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
|
%%
%% This is file `markdownthemewitiko_markdown_defaults.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% markdown.dtx (with options: `themes-witiko-markdown-defaults-tex')
%%
%% Copyright (C) 2016-2024 Vít Starý Novotný
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% 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
%%
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Vít Starý 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
%% that your modifications do not get overwritten when you install a
%% 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.
%%
%% The names of the source files used are shown above.
%%
\def\markdownRendererInterblockSeparatorPrototype{\par}%
\def\markdownRendererParagraphSeparatorPrototype{%
\markdownRendererInterblockSeparator}%
\def\markdownRendererHardLineBreakPrototype{\hfil\break}%
\def\markdownRendererSoftLineBreakPrototype{ }%
\let\markdownRendererEllipsisPrototype\dots
\def\markdownRendererNbspPrototype{~}%
\def\markdownRendererLeftBracePrototype{\char`\{}%
\def\markdownRendererRightBracePrototype{\char`\}}%
\def\markdownRendererDollarSignPrototype{\char`$}%
\def\markdownRendererPercentSignPrototype{\char`\%}%
\def\markdownRendererAmpersandPrototype{\&}%
\def\markdownRendererUnderscorePrototype{\char`_}%
\def\markdownRendererHashPrototype{\char`\#}%
\def\markdownRendererCircumflexPrototype{\char`^}%
\def\markdownRendererBackslashPrototype{\char`\\}%
\def\markdownRendererTildePrototype{\char`~}%
\def\markdownRendererPipePrototype{|}%
\def\markdownRendererCodeSpanPrototype#1{{\tt#1}}%
\def\markdownRendererLinkPrototype#1#2#3#4{#2}%
\def\markdownRendererContentBlockPrototype#1#2#3#4{%
\markdownInput{#3}}%
\def\markdownRendererContentBlockOnlineImagePrototype{%
\markdownRendererImage}%
\def\markdownRendererContentBlockCodePrototype#1#2#3#4#5{%
\markdownRendererInputFencedCode{#3}{#2}{#2}}%
\def\markdownRendererImagePrototype#1#2#3#4{#2}%
\def\markdownRendererUlBeginPrototype{}%
\def\markdownRendererUlBeginTightPrototype{}%
\def\markdownRendererUlItemPrototype{}%
\def\markdownRendererUlItemEndPrototype{}%
\def\markdownRendererUlEndPrototype{}%
\def\markdownRendererUlEndTightPrototype{}%
\def\markdownRendererOlBeginPrototype{}%
\def\markdownRendererOlBeginTightPrototype{}%
\def\markdownRendererFancyOlBeginPrototype#1#2{\markdownRendererOlBegin}%
\def\markdownRendererFancyOlBeginTightPrototype#1#2{\markdownRendererOlBeginTight}%
\def\markdownRendererOlItemPrototype{}%
\def\markdownRendererOlItemWithNumberPrototype#1{}%
\def\markdownRendererOlItemEndPrototype{}%
\def\markdownRendererFancyOlItemPrototype{\markdownRendererOlItem}%
\def\markdownRendererFancyOlItemWithNumberPrototype{\markdownRendererOlItemWithNumber}%
\def\markdownRendererFancyOlItemEndPrototype{}%
\def\markdownRendererOlEndPrototype{}%
\def\markdownRendererOlEndTightPrototype{}%
\def\markdownRendererFancyOlEndPrototype{\markdownRendererOlEnd}%
\def\markdownRendererFancyOlEndTightPrototype{\markdownRendererOlEndTight}%
\def\markdownRendererDlBeginPrototype{}%
\def\markdownRendererDlBeginTightPrototype{}%
\def\markdownRendererDlItemPrototype#1{#1}%
\def\markdownRendererDlItemEndPrototype{}%
\def\markdownRendererDlDefinitionBeginPrototype{}%
\def\markdownRendererDlDefinitionEndPrototype{\par}%
\def\markdownRendererDlEndPrototype{}%
\def\markdownRendererDlEndTightPrototype{}%
\def\markdownRendererEmphasisPrototype#1{{\it#1}}%
\def\markdownRendererStrongEmphasisPrototype#1{{\bf#1}}%
\def\markdownRendererBlockQuoteBeginPrototype{\begingroup\it}%
\def\markdownRendererBlockQuoteEndPrototype{\endgroup\par}%
\def\markdownRendererLineBlockBeginPrototype{\begingroup\parindent=0pt}%
\def\markdownRendererLineBlockEndPrototype{\endgroup}%
\def\markdownRendererInputVerbatimPrototype#1{%
\par{\tt\input#1\relax{}}\par}%
\def\markdownRendererInputFencedCodePrototype#1#2#3{%
\markdownRendererInputVerbatim{#1}}%
\def\markdownRendererHeadingOnePrototype#1{#1}%
\def\markdownRendererHeadingTwoPrototype#1{#1}%
\def\markdownRendererHeadingThreePrototype#1{#1}%
\def\markdownRendererHeadingFourPrototype#1{#1}%
\def\markdownRendererHeadingFivePrototype#1{#1}%
\def\markdownRendererHeadingSixPrototype#1{#1}%
\def\markdownRendererThematicBreakPrototype{}%
\def\markdownRendererNotePrototype#1{#1}%
\def\markdownRendererCitePrototype#1{}%
\def\markdownRendererTextCitePrototype#1{}%
\def\markdownRendererTickedBoxPrototype{[X]}%
\def\markdownRendererHalfTickedBoxPrototype{[/]}%
\def\markdownRendererUntickedBoxPrototype{[ ]}%
\def\markdownRendererStrikeThroughPrototype#1{#1}%
\def\markdownRendererSuperscriptPrototype#1{#1}%
\def\markdownRendererSubscriptPrototype#1{#1}%
\def\markdownRendererDisplayMathPrototype#1{$$#1$$}%
\def\markdownRendererInlineMathPrototype#1{$#1$}%
\ExplSyntaxOn
\cs_gset:Npn
\markdownRendererHeaderAttributeContextBeginPrototype
{
\group_begin:
\color_group_begin:
}
\cs_gset:Npn
\markdownRendererHeaderAttributeContextEndPrototype
{
\color_group_end:
\group_end:
}
\cs_gset_eq:NN
\markdownRendererBracketedSpanAttributeContextBeginPrototype
\markdownRendererHeaderAttributeContextBeginPrototype
\cs_gset_eq:NN
\markdownRendererBracketedSpanAttributeContextEndPrototype
\markdownRendererHeaderAttributeContextEndPrototype
\cs_gset_eq:NN
\markdownRendererFencedDivAttributeContextBeginPrototype
\markdownRendererHeaderAttributeContextBeginPrototype
\cs_gset_eq:NN
\markdownRendererFencedDivAttributeContextEndPrototype
\markdownRendererHeaderAttributeContextEndPrototype
\cs_gset_eq:NN
\markdownRendererFencedCodeAttributeContextBeginPrototype
\markdownRendererHeaderAttributeContextBeginPrototype
\cs_gset_eq:NN
\markdownRendererFencedCodeAttributeContextEndPrototype
\markdownRendererHeaderAttributeContextEndPrototype
\cs_gset:Npn
\markdownRendererReplacementCharacterPrototype
{ \codepoint_str_generate:n { fffd } }
\ExplSyntaxOff
\def\markdownRendererSectionBeginPrototype{}%
\def\markdownRendererSectionEndPrototype{}%
\ExplSyntaxOn
\cs_new:Nn
\__markdown_plain_tex_default_input_raw_inline_renderer_prototype:nn
{
\str_case:nn
{ #2 }
{
{ md } { \markdownInput{#1} }
{ tex } { \markdownEscape{#1} \unskip }
}
}
\cs_new:Nn
\__markdown_plain_tex_default_input_raw_block_renderer_prototype:nn
{
\str_case:nn
{ #2 }
{
{ md } { \markdownInput{#1} }
{ tex } { \markdownEscape{#1} }
}
}
\cs_gset:Npn
\markdownRendererInputRawInlinePrototype#1#2
{
\__markdown_plain_tex_default_input_raw_inline_renderer_prototype:nn
{ #1 }
{ #2 }
}
\cs_gset:Npn
\markdownRendererInputRawBlockPrototype#1#2
{
\__markdown_plain_tex_default_input_raw_block_renderer_prototype:nn
{ #1 }
{ #2 }
}
\seq_new:N \g__markdown_jekyll_data_datatypes_seq
\tl_const:Nn \c__markdown_jekyll_data_sequence_tl { sequence }
\tl_const:Nn \c__markdown_jekyll_data_mapping_tl { mapping }
\tl_const:Nn \c__markdown_jekyll_data_scalar_tl { scalar }
\seq_new:N \g__markdown_jekyll_data_wildcard_absolute_address_seq
\cs_new:Nn \markdown_jekyll_data_push_address_segment:n
{
\seq_if_empty:NF
\g__markdown_jekyll_data_datatypes_seq
{
\seq_get_right:NN
\g__markdown_jekyll_data_datatypes_seq
\l_tmpa_tl
\str_if_eq:NNTF
\l_tmpa_tl
\c__markdown_jekyll_data_sequence_tl
{
\seq_put_right:Nn
\g__markdown_jekyll_data_wildcard_absolute_address_seq
{ * }
}
{
\seq_put_right:Nn
\g__markdown_jekyll_data_wildcard_absolute_address_seq
{ #1 }
}
}
}
\tl_new:N \g__markdown_jekyll_data_wildcard_absolute_address_tl
\tl_new:N \g__markdown_jekyll_data_wildcard_relative_address_tl
\cs_new:Nn \markdown_jekyll_data_concatenate_address:NN
{
\seq_pop_left:NN #1 \l_tmpa_tl
\tl_set:Nx #2 { / \seq_use:Nn #1 { / } }
\seq_put_left:NV #1 \l_tmpa_tl
}
\cs_new:Nn \markdown_jekyll_data_update_address_tls:
{
\markdown_jekyll_data_concatenate_address:NN
\g__markdown_jekyll_data_wildcard_absolute_address_seq
\g__markdown_jekyll_data_wildcard_absolute_address_tl
\seq_get_right:NN
\g__markdown_jekyll_data_wildcard_absolute_address_seq
\g__markdown_jekyll_data_wildcard_relative_address_tl
}
\cs_new:Nn \markdown_jekyll_data_push:nN
{
\markdown_jekyll_data_push_address_segment:n
{ #1 }
\seq_put_right:NV
\g__markdown_jekyll_data_datatypes_seq
#2
\markdown_jekyll_data_update_address_tls:
}
\cs_new:Nn \markdown_jekyll_data_pop:
{
\seq_pop_right:NN
\g__markdown_jekyll_data_wildcard_absolute_address_seq
\l_tmpa_tl
\seq_pop_right:NN
\g__markdown_jekyll_data_datatypes_seq
\l_tmpa_tl
\markdown_jekyll_data_update_address_tls:
}
\cs_new:Nn \markdown_jekyll_data_set_keyval:nn
{
\keys_set_known:nn
{ markdown/jekyllData }
{ { #1 } = { #2 } }
}
\cs_generate_variant:Nn
\markdown_jekyll_data_set_keyval:nn
{ Vn }
\cs_new:Nn \markdown_jekyll_data_set_keyvals:nn
{
\markdown_jekyll_data_push:nN
{ #1 }
\c__markdown_jekyll_data_scalar_tl
\markdown_jekyll_data_set_keyval:Vn
\g__markdown_jekyll_data_wildcard_absolute_address_tl
{ #2 }
\markdown_jekyll_data_set_keyval:Vn
\g__markdown_jekyll_data_wildcard_relative_address_tl
{ #2 }
\markdown_jekyll_data_pop:
}
\def\markdownRendererJekyllDataSequenceBeginPrototype#1#2{
\markdown_jekyll_data_push:nN
{ #1 }
\c__markdown_jekyll_data_sequence_tl
}
\def\markdownRendererJekyllDataMappingBeginPrototype#1#2{
\markdown_jekyll_data_push:nN
{ #1 }
\c__markdown_jekyll_data_mapping_tl
}
\def\markdownRendererJekyllDataSequenceEndPrototype{
\markdown_jekyll_data_pop:
}
\def\markdownRendererJekyllDataMappingEndPrototype{
\markdown_jekyll_data_pop:
}
\def\markdownRendererJekyllDataBooleanPrototype#1#2{
\markdown_jekyll_data_set_keyvals:nn
{ #1 }
{ #2 }
}
\def\markdownRendererJekyllDataEmptyPrototype#1{}
\def\markdownRendererJekyllDataNumberPrototype#1#2{
\markdown_jekyll_data_set_keyvals:nn
{ #1 }
{ #2 }
}
\def\markdownRendererJekyllDataStringPrototype#1#2{
\markdown_jekyll_data_set_keyvals:nn
{ #1 }
{ #2 }
}
\ExplSyntaxOff
\endinput
%%
%% End of file `markdownthemewitiko_markdown_defaults.tex'.
|