File: footnotes.test

package info (click to toggle)
haskell-djot 0.1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 560 kB
  • sloc: haskell: 3,440; makefile: 3
file content (92 lines) | stat: -rw-r--r-- 1,889 bytes parent folder | download
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
````
test[^a] and another[^foo_bar].

[^a]: This is a note.

  Second paragraph.

[^foo_bar]:
  ```
  code
  ```

another ref to the first note[^a].
.
<p>test<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> and another<a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a>.</p>
<p>another ref to the first note<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a>.</p>
<section role="doc-endnotes">
<hr>
<ol>
<li id="fn1">
<p>This is a note.</p>
<p>Second paragraph.<a href="#fnref1" role="doc-backlink">↩︎</a></p>
</li>
<li id="fn2">
<pre><code>code
</code></pre>
<p><a href="#fnref2" role="doc-backlink">↩︎</a></p>
</li>
</ol>
</section>
````

```
test[^nonexistent]

[^unused]: note

  more
.
<p>test<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes">
<hr>
<ol>
<li id="fn1">
<p><a href="#fnref1" role="doc-backlink">↩︎</a></p>
</li>
</ol>
</section>
```

```
[^a]
[^b]

[^b]:
.
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a>
<a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes">
<hr>
<ol>
<li id="fn1">
<p><a href="#fnref1" role="doc-backlink">↩︎</a></p>
</li>
<li id="fn2">
<p><a href="#fnref2" role="doc-backlink">↩︎</a></p>
</li>
</ol>
</section>
```

Issue #37:

```
text[^footnote].

[^footnote]: very long footnote[^another-footnote]
[^another-footnote]: bla bla[^another-footnote]
.
<p>text<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a>.</p>
<section role="doc-endnotes">
<hr>
<ol>
<li id="fn1">
<p>very long footnote<a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a><a href="#fnref1" role="doc-backlink">↩︎</a></p>
</li>
<li id="fn2">
<p>bla bla<a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a><a href="#fnref2" role="doc-backlink">↩︎</a></p>
</li>
</ol>
</section>
```