line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
0
|
|
|
|
|
|
void tmh_cb_blockcode(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_buffer *lang, void *opaque) { |
3
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
4
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "blockcode", 0); |
5
|
|
|
|
|
|
|
|
6
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
7
|
|
|
|
|
|
|
|
8
|
0
|
0
|
|
|
|
|
CB_HEADER("blockcode"); |
9
|
|
|
|
|
|
|
|
10
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
0
|
0
|
|
|
|
|
PUSHBUF(lang); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
} |
17
|
0
|
|
|
|
|
|
void tmh_cb_blockquote(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
18
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
19
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "blockquote", 0); |
20
|
|
|
|
|
|
|
|
21
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
22
|
|
|
|
|
|
|
|
23
|
0
|
0
|
|
|
|
|
CB_HEADER("blockquote"); |
24
|
|
|
|
|
|
|
|
25
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
} |
30
|
0
|
|
|
|
|
|
void tmh_cb_blockhtml(hoedown_buffer *ob,const hoedown_buffer *text, void *opaque) { |
31
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
32
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "blockhtml", 0); |
33
|
|
|
|
|
|
|
|
34
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
35
|
|
|
|
|
|
|
|
36
|
0
|
0
|
|
|
|
|
CB_HEADER("blockhtml"); |
37
|
|
|
|
|
|
|
|
38
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
} |
43
|
1
|
|
|
|
|
|
void tmh_cb_header(hoedown_buffer *ob, const hoedown_buffer *text, int level, void *opaque) { |
44
|
1
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
45
|
1
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "header", 0); |
46
|
|
|
|
|
|
|
|
47
|
1
|
50
|
|
|
|
|
if (!rcb) { return; } |
48
|
|
|
|
|
|
|
|
49
|
1
|
50
|
|
|
|
|
CB_HEADER("header"); |
50
|
|
|
|
|
|
|
|
51
|
1
|
50
|
|
|
|
|
PUSHBUF(text); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
1
|
50
|
|
|
|
|
mXPUSHi(level); |
54
|
|
|
|
|
|
|
|
55
|
1
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
} |
58
|
0
|
|
|
|
|
|
void tmh_cb_hrule(hoedown_buffer *ob, void *opaque) { |
59
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
60
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "hrule", 0); |
61
|
|
|
|
|
|
|
|
62
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
63
|
|
|
|
|
|
|
|
64
|
0
|
0
|
|
|
|
|
CB_HEADER("hrule"); |
65
|
|
|
|
|
|
|
|
66
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
} |
69
|
0
|
|
|
|
|
|
void tmh_cb_list(hoedown_buffer *ob, const hoedown_buffer *text, int flags, void *opaque) { |
70
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
71
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "list", 0); |
72
|
|
|
|
|
|
|
|
73
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
74
|
|
|
|
|
|
|
|
75
|
0
|
0
|
|
|
|
|
CB_HEADER("list"); |
76
|
|
|
|
|
|
|
|
77
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
0
|
0
|
|
|
|
|
mXPUSHi(flags); |
80
|
|
|
|
|
|
|
|
81
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
} |
84
|
0
|
|
|
|
|
|
void tmh_cb_listitem(hoedown_buffer *ob, const hoedown_buffer *text, int flags, void *opaque) { |
85
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
86
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "listitem", 0); |
87
|
|
|
|
|
|
|
|
88
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
89
|
|
|
|
|
|
|
|
90
|
0
|
0
|
|
|
|
|
CB_HEADER("listitem"); |
91
|
|
|
|
|
|
|
|
92
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
93
|
|
|
|
|
|
|
|
94
|
0
|
0
|
|
|
|
|
mXPUSHi(flags); |
95
|
|
|
|
|
|
|
|
96
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
} |
99
|
3
|
|
|
|
|
|
void tmh_cb_paragraph(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
100
|
3
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
101
|
3
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "paragraph", 0); |
102
|
|
|
|
|
|
|
|
103
|
3
|
50
|
|
|
|
|
if (!rcb) { return; } |
104
|
|
|
|
|
|
|
|
105
|
3
|
50
|
|
|
|
|
CB_HEADER("paragraph"); |
106
|
|
|
|
|
|
|
|
107
|
3
|
50
|
|
|
|
|
PUSHBUF(text); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
3
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
} |
112
|
0
|
|
|
|
|
|
void tmh_cb_table(hoedown_buffer *ob, const hoedown_buffer *header, const hoedown_buffer *body, void *opaque) { |
113
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
114
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "table", 0); |
115
|
|
|
|
|
|
|
|
116
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
117
|
|
|
|
|
|
|
|
118
|
0
|
0
|
|
|
|
|
CB_HEADER("table"); |
119
|
|
|
|
|
|
|
|
120
|
0
|
0
|
|
|
|
|
PUSHBUF(header); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
122
|
0
|
0
|
|
|
|
|
PUSHBUF(body); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
123
|
|
|
|
|
|
|
|
124
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
} |
127
|
0
|
|
|
|
|
|
void tmh_cb_table_row(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
128
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
129
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "table_row", 0); |
130
|
|
|
|
|
|
|
|
131
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
132
|
|
|
|
|
|
|
|
133
|
0
|
0
|
|
|
|
|
CB_HEADER("table_row"); |
134
|
|
|
|
|
|
|
|
135
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
136
|
|
|
|
|
|
|
|
137
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
} |
140
|
0
|
|
|
|
|
|
void tmh_cb_table_cell(hoedown_buffer *ob, const hoedown_buffer *text, int flags, void *opaque) { |
141
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
142
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "table_cell", 0); |
143
|
|
|
|
|
|
|
|
144
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
145
|
|
|
|
|
|
|
|
146
|
0
|
0
|
|
|
|
|
CB_HEADER("table_cell"); |
147
|
|
|
|
|
|
|
|
148
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
149
|
|
|
|
|
|
|
|
150
|
0
|
0
|
|
|
|
|
mXPUSHi(flags); |
151
|
|
|
|
|
|
|
|
152
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
} |
155
|
0
|
|
|
|
|
|
void tmh_cb_footnotes(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
156
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
157
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "footnotes", 0); |
158
|
|
|
|
|
|
|
|
159
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
160
|
|
|
|
|
|
|
|
161
|
0
|
0
|
|
|
|
|
CB_HEADER("footnotes"); |
162
|
|
|
|
|
|
|
|
163
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
164
|
|
|
|
|
|
|
|
165
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
} |
168
|
0
|
|
|
|
|
|
void tmh_cb_footnote_def(hoedown_buffer *ob, const hoedown_buffer *text, unsigned int num, void *opaque) { |
169
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
170
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "footnote_def", 0); |
171
|
|
|
|
|
|
|
|
172
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
173
|
|
|
|
|
|
|
|
174
|
0
|
0
|
|
|
|
|
CB_HEADER("footnote_def"); |
175
|
|
|
|
|
|
|
|
176
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
177
|
|
|
|
|
|
|
|
178
|
0
|
0
|
|
|
|
|
mXPUSHu(num); |
179
|
|
|
|
|
|
|
|
180
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
} |
183
|
1
|
|
|
|
|
|
int tmh_cb_autolink(hoedown_buffer *ob, const hoedown_buffer *link, enum hoedown_autolink type, void *opaque) { |
184
|
1
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
185
|
1
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "autolink", 0); |
186
|
|
|
|
|
|
|
|
187
|
1
|
50
|
|
|
|
|
if (!rcb) { return 0; } |
188
|
|
|
|
|
|
|
|
189
|
1
|
50
|
|
|
|
|
CB_HEADER("autolink"); |
190
|
|
|
|
|
|
|
|
191
|
1
|
50
|
|
|
|
|
PUSHBUF(link); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
192
|
|
|
|
|
|
|
|
193
|
1
|
50
|
|
|
|
|
mXPUSHi(type); |
194
|
|
|
|
|
|
|
|
195
|
1
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
196
|
|
|
|
|
|
|
|
197
|
1
|
50
|
|
|
|
|
return is_null ? 0 : 1; |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
} |
200
|
1
|
|
|
|
|
|
int tmh_cb_codespan(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
201
|
1
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
202
|
1
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "codespan", 0); |
203
|
|
|
|
|
|
|
|
204
|
1
|
50
|
|
|
|
|
if (!rcb) { return 0; } |
205
|
|
|
|
|
|
|
|
206
|
1
|
50
|
|
|
|
|
CB_HEADER("codespan"); |
207
|
|
|
|
|
|
|
|
208
|
1
|
50
|
|
|
|
|
PUSHBUF(text); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
209
|
|
|
|
|
|
|
|
210
|
1
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
211
|
|
|
|
|
|
|
|
212
|
1
|
50
|
|
|
|
|
return is_null ? 0 : 1; |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
} |
215
|
0
|
|
|
|
|
|
int tmh_cb_double_emphasis(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
216
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
217
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "double_emphasis", 0); |
218
|
|
|
|
|
|
|
|
219
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
220
|
|
|
|
|
|
|
|
221
|
0
|
0
|
|
|
|
|
CB_HEADER("double_emphasis"); |
222
|
|
|
|
|
|
|
|
223
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
224
|
|
|
|
|
|
|
|
225
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
226
|
|
|
|
|
|
|
|
227
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
} |
230
|
0
|
|
|
|
|
|
int tmh_cb_emphasis(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
231
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
232
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "emphasis", 0); |
233
|
|
|
|
|
|
|
|
234
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
235
|
|
|
|
|
|
|
|
236
|
0
|
0
|
|
|
|
|
CB_HEADER("emphasis"); |
237
|
|
|
|
|
|
|
|
238
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
239
|
|
|
|
|
|
|
|
240
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
241
|
|
|
|
|
|
|
|
242
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
} |
245
|
0
|
|
|
|
|
|
int tmh_cb_underline(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
246
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
247
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "underline", 0); |
248
|
|
|
|
|
|
|
|
249
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
250
|
|
|
|
|
|
|
|
251
|
0
|
0
|
|
|
|
|
CB_HEADER("underline"); |
252
|
|
|
|
|
|
|
|
253
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
254
|
|
|
|
|
|
|
|
255
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
256
|
|
|
|
|
|
|
|
257
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
} |
260
|
0
|
|
|
|
|
|
int tmh_cb_highlight(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
261
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
262
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "highlight", 0); |
263
|
|
|
|
|
|
|
|
264
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
265
|
|
|
|
|
|
|
|
266
|
0
|
0
|
|
|
|
|
CB_HEADER("highlight"); |
267
|
|
|
|
|
|
|
|
268
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
269
|
|
|
|
|
|
|
|
270
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
271
|
|
|
|
|
|
|
|
272
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
} |
275
|
0
|
|
|
|
|
|
int tmh_cb_quote(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
276
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
277
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "quote", 0); |
278
|
|
|
|
|
|
|
|
279
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
280
|
|
|
|
|
|
|
|
281
|
0
|
0
|
|
|
|
|
CB_HEADER("quote"); |
282
|
|
|
|
|
|
|
|
283
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
284
|
|
|
|
|
|
|
|
285
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
286
|
|
|
|
|
|
|
|
287
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
} |
290
|
2
|
|
|
|
|
|
int tmh_cb_image(hoedown_buffer *ob, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_buffer *alt, void *opaque) { |
291
|
2
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
292
|
2
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "image", 0); |
293
|
|
|
|
|
|
|
|
294
|
2
|
50
|
|
|
|
|
if (!rcb) { return 0; } |
295
|
|
|
|
|
|
|
|
296
|
2
|
50
|
|
|
|
|
CB_HEADER("image"); |
297
|
|
|
|
|
|
|
|
298
|
2
|
50
|
|
|
|
|
PUSHBUF(link); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
299
|
|
|
|
|
|
|
|
300
|
2
|
100
|
|
|
|
|
PUSHBUF(title); |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
301
|
|
|
|
|
|
|
|
302
|
2
|
50
|
|
|
|
|
PUSHBUF(alt); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
303
|
|
|
|
|
|
|
|
304
|
2
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
305
|
|
|
|
|
|
|
|
306
|
2
|
50
|
|
|
|
|
return is_null ? 0 : 1; |
307
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
} |
309
|
0
|
|
|
|
|
|
int tmh_cb_linebreak(hoedown_buffer *ob, void *opaque) { |
310
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
311
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "linebreak", 0); |
312
|
|
|
|
|
|
|
|
313
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
314
|
|
|
|
|
|
|
|
315
|
0
|
0
|
|
|
|
|
CB_HEADER("linebreak"); |
316
|
|
|
|
|
|
|
|
317
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
318
|
|
|
|
|
|
|
|
319
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
} |
322
|
4
|
|
|
|
|
|
int tmh_cb_link(hoedown_buffer *ob, const hoedown_buffer *link, const hoedown_buffer *title, const hoedown_buffer *content, void *opaque) { |
323
|
4
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
324
|
4
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "link", 0); |
325
|
|
|
|
|
|
|
|
326
|
4
|
50
|
|
|
|
|
if (!rcb) { return 0; } |
327
|
|
|
|
|
|
|
|
328
|
4
|
50
|
|
|
|
|
CB_HEADER("link"); |
329
|
|
|
|
|
|
|
|
330
|
4
|
50
|
|
|
|
|
PUSHBUF(link); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
331
|
|
|
|
|
|
|
|
332
|
4
|
50
|
|
|
|
|
PUSHBUF(title); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
333
|
|
|
|
|
|
|
|
334
|
4
|
50
|
|
|
|
|
PUSHBUF(content); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
335
|
|
|
|
|
|
|
|
336
|
4
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
337
|
|
|
|
|
|
|
|
338
|
4
|
50
|
|
|
|
|
return is_null ? 0 : 1; |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
} |
341
|
2
|
|
|
|
|
|
int tmh_cb_raw_html_tag(hoedown_buffer *ob, const hoedown_buffer *tag, void *opaque) { |
342
|
2
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
343
|
2
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "raw_html_tag", 0); |
344
|
|
|
|
|
|
|
|
345
|
2
|
50
|
|
|
|
|
if (!rcb) { return 0; } |
346
|
|
|
|
|
|
|
|
347
|
2
|
50
|
|
|
|
|
CB_HEADER("raw_html_tag"); |
348
|
|
|
|
|
|
|
|
349
|
2
|
50
|
|
|
|
|
PUSHBUF(tag); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
350
|
|
|
|
|
|
|
|
351
|
2
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
352
|
|
|
|
|
|
|
|
353
|
2
|
50
|
|
|
|
|
return is_null ? 0 : 1; |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
} |
356
|
0
|
|
|
|
|
|
int tmh_cb_triple_emphasis(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
357
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
358
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "triple_emphasis", 0); |
359
|
|
|
|
|
|
|
|
360
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
361
|
|
|
|
|
|
|
|
362
|
0
|
0
|
|
|
|
|
CB_HEADER("triple_emphasis"); |
363
|
|
|
|
|
|
|
|
364
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
365
|
|
|
|
|
|
|
|
366
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
367
|
|
|
|
|
|
|
|
368
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
} |
371
|
0
|
|
|
|
|
|
int tmh_cb_strikethrough(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
372
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
373
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "strikethrough", 0); |
374
|
|
|
|
|
|
|
|
375
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
376
|
|
|
|
|
|
|
|
377
|
0
|
0
|
|
|
|
|
CB_HEADER("strikethrough"); |
378
|
|
|
|
|
|
|
|
379
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
380
|
|
|
|
|
|
|
|
381
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
382
|
|
|
|
|
|
|
|
383
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
384
|
|
|
|
|
|
|
|
385
|
|
|
|
|
|
|
} |
386
|
0
|
|
|
|
|
|
int tmh_cb_superscript(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
387
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
388
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "superscript", 0); |
389
|
|
|
|
|
|
|
|
390
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
391
|
|
|
|
|
|
|
|
392
|
0
|
0
|
|
|
|
|
CB_HEADER("superscript"); |
393
|
|
|
|
|
|
|
|
394
|
0
|
0
|
|
|
|
|
PUSHBUF(text); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
395
|
|
|
|
|
|
|
|
396
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
397
|
|
|
|
|
|
|
|
398
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
399
|
|
|
|
|
|
|
|
400
|
|
|
|
|
|
|
} |
401
|
0
|
|
|
|
|
|
int tmh_cb_footnote_ref(hoedown_buffer *ob, unsigned int num, void *opaque) { |
402
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
403
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "footnote_ref", 0); |
404
|
|
|
|
|
|
|
|
405
|
0
|
0
|
|
|
|
|
if (!rcb) { return 0; } |
406
|
|
|
|
|
|
|
|
407
|
0
|
0
|
|
|
|
|
CB_HEADER("footnote_ref"); |
408
|
|
|
|
|
|
|
|
409
|
0
|
0
|
|
|
|
|
mXPUSHu(num); |
410
|
|
|
|
|
|
|
|
411
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
412
|
|
|
|
|
|
|
|
413
|
0
|
0
|
|
|
|
|
return is_null ? 0 : 1; |
414
|
|
|
|
|
|
|
|
415
|
|
|
|
|
|
|
} |
416
|
0
|
|
|
|
|
|
void tmh_cb_entity(hoedown_buffer *ob, const hoedown_buffer *entity, void *opaque) { |
417
|
0
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
418
|
0
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "entity", 0); |
419
|
|
|
|
|
|
|
|
420
|
0
|
0
|
|
|
|
|
if (!rcb) { return; } |
421
|
|
|
|
|
|
|
|
422
|
0
|
0
|
|
|
|
|
CB_HEADER("entity"); |
423
|
|
|
|
|
|
|
|
424
|
0
|
0
|
|
|
|
|
PUSHBUF(entity); |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
425
|
|
|
|
|
|
|
|
426
|
0
|
0
|
|
|
|
|
CB_FOOTER; |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
427
|
|
|
|
|
|
|
|
428
|
|
|
|
|
|
|
} |
429
|
25
|
|
|
|
|
|
void tmh_cb_normal_text(hoedown_buffer *ob, const hoedown_buffer *text, void *opaque) { |
430
|
25
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
431
|
25
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "normal_text", 0); |
432
|
|
|
|
|
|
|
|
433
|
25
|
50
|
|
|
|
|
if (!rcb) { return; } |
434
|
|
|
|
|
|
|
|
435
|
25
|
50
|
|
|
|
|
CB_HEADER("normal_text"); |
436
|
|
|
|
|
|
|
|
437
|
25
|
50
|
|
|
|
|
PUSHBUF(text); |
|
|
50
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
438
|
|
|
|
|
|
|
|
439
|
25
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
440
|
|
|
|
|
|
|
|
441
|
|
|
|
|
|
|
} |
442
|
1
|
|
|
|
|
|
void tmh_cb_doc_header(hoedown_buffer *ob, void *opaque) { |
443
|
1
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
444
|
1
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "doc_header", 0); |
445
|
|
|
|
|
|
|
|
446
|
1
|
50
|
|
|
|
|
if (!rcb) { return; } |
447
|
|
|
|
|
|
|
|
448
|
1
|
50
|
|
|
|
|
CB_HEADER("doc_header"); |
449
|
|
|
|
|
|
|
|
450
|
1
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
451
|
|
|
|
|
|
|
|
452
|
|
|
|
|
|
|
} |
453
|
1
|
|
|
|
|
|
void tmh_cb_doc_footer(hoedown_buffer *ob, void *opaque) { |
454
|
1
|
|
|
|
|
|
dTHX; dSP; bool is_null = 0; |
455
|
1
|
|
|
|
|
|
SV** rcb = hv_fetchs((HV*)opaque, "doc_footer", 0); |
456
|
|
|
|
|
|
|
|
457
|
1
|
50
|
|
|
|
|
if (!rcb) { return; } |
458
|
|
|
|
|
|
|
|
459
|
1
|
50
|
|
|
|
|
CB_HEADER("doc_footer"); |
460
|
|
|
|
|
|
|
|
461
|
1
|
50
|
|
|
|
|
CB_FOOTER; |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
462
|
|
|
|
|
|
|
|
463
|
|
|
|
|
|
|
} |
464
|
|
|
|
|
|
|
|