@@ -40,6 +40,12 @@ Say we have the following file, `example.md`:
40
40
41
41
www.example.com, https://example.com, and
[email protected] .
42
42
43
+ ## Footnote
44
+
45
+ A note[^1]
46
+
47
+ [^1]: Big note.
48
+
43
49
## Strikethrough
44
50
45
51
~one~ or ~~two~~ tildes.
@@ -80,11 +86,16 @@ unified()
80
86
81
87
Now, running ` node example ` yields:
82
88
83
- ``` html
89
+ ``` txt
84
90
example.md: no issues found
91
+ ```
92
+
93
+ ``` html
85
94
<h1 >GFM</h1 >
86
95
<h2 >Autolink literals</h2 >
87
96
<
p ><
a href =
" http://www.example.com" >www.example.com</
a >, <
a href =
" https://example.com" >https://example.com</
a >, and <
a href =
" mailto:[email protected] " >
[email protected] </
a >.</
p >
97
+ <h2 >Footnote</h2 >
98
+ <p >A note<sup ><a href =" #user-content-fn-1" id =" user-content-fnref-1" data-footnote-ref aria-describedby =" footnote-label" >1</a ></sup ></p >
88
99
<h2 >Strikethrough</h2 >
89
100
<p ><del >one</del > or <del >two</del > tildes.</p >
90
101
<h2 >Table</h2 >
@@ -103,6 +114,13 @@ example.md: no issues found
103
114
<li class =" task-list-item" ><input type =" checkbox" disabled > to do</li >
104
115
<li class =" task-list-item" ><input type =" checkbox" checked disabled > done</li >
105
116
</ul >
117
+ <section data-footnotes class =" footnotes" ><h2 id =" footnote-label" class =" sr-only" >Footnotes</h2 >
118
+ <ol >
119
+ <li id =" user-content-fn-1" >
120
+ <p >Big note. <a href =" #user-content-fnref-1" data-footnote-backref class =" data-footnote-backref" aria-label =" Back to content" >↩</a ></p >
121
+ </li >
122
+ </ol >
123
+ </section >
106
124
```
107
125
108
126
## API
@@ -155,8 +173,6 @@ attacks.
155
173
156
174
* [ ` remark-github ` ] ( https://github.com/remarkjs/remark-github )
157
175
— Autolink references like in GitHub issues, PRs, and comments
158
- * [ ` remark-footnotes ` ] ( https://github.com/remarkjs/remark-footnotes )
159
- — Footnotes
160
176
* [ ` remark-frontmatter ` ] ( https://github.com/remarkjs/remark-frontmatter )
161
177
— Frontmatter (YAML, TOML, and more)
162
178
* [ ` remark-math ` ] ( https://github.com/remarkjs/remark-math )
0 commit comments