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