121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
in the stylesheet.[^nostyle]
If a footnote consists just of a valid userclass token then this token
is not interpreted as such, instead it is emitted as plain text.
(^
.bare.classlist.inside.inline.footnote:
)[^bare1]
[^bare2]
## Footnotes
[branch]: /timeline?r=markdown-footnotes&nowiki
[^ 1]: Footnotes is a Fossil' extention of
Markdown. Your other tools may have limited support for these.
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
|
in the stylesheet.[^nostyle]
If a footnote consists just of a valid userclass token then this token
is not interpreted as such, instead it is emitted as plain text.
(^
.bare.classlist.inside.inline.footnote:
)[^bare1]
[^bare2]
<html>
Click
<a href="?a=B"e='&nonASCII=😂&script=<script>alert('Broken!');</script>">
here</a> and
<a href='?a=B"e="&nonASCII=😂&script=<script>alert("Broken!");</script>'>
here</a>
to test escaping of REQUEST_URI in the generated footnote markers.
</html>
A depth of nesting must be limited.
(^
A long chain of nested inline footnotes...
(^
is a rather unusual thing...
(^
and requires extra CPU cycles for processing.
(^
Theoretically speaking O(n<sup>2</sup>).
(^
Thus it is worth dismissing those footnotes...
(^
that are nested deeper than on a certain level.
(^
A particular value for that limit...
(^
is hard-coded in src/markdown.c ...
(^
in function `markdown()` ...
(^
in variable named `maxDepth`.
(^
For the time being, its value is **5**
)
)
)
)
)
)
)
)
)
)
)
## Footnotes
[branch]: /timeline?r=markdown-footnotes&nowiki
[^ 1]: Footnotes is a Fossil' extention of
Markdown. Your other tools may have limited support for these.
|
175
176
177
178
179
180
181
|
.at.the.2nd.line.of.labeled.footnote.definition:
[^nostyle]:
.unused.classes:
In that case text of the footnote just looks like as if
no special processing occured.
|
>
>
>
>
>
>
>
|
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
.at.the.2nd.line.of.labeled.footnote.definition:
[^nostyle]:
.unused.classes:
In that case text of the footnote just looks like as if
no special processing occured.
[^ <script>alert("You have been pwned!");</script> ]: Labels are escaped
[^ <textarea>"Last words here...' ]:
<textarea>Content is also escaped</textarea>
|