Pandoc example: . Here is a footnote reference,[^1] and another.[^longnote] [^1]: Here is the footnote. [^longnote]: Here's one with multiple blocks. Subsequent paragraphs are indented to show that they belong to the previous footnote. { some.code } The whole paragraph can be indented, or just the first line. In this way, multi-paragraph footnotes work like multi-paragraph list items. This paragraph won't be part of the note, because it isn't indented. .

Here is a footnote reference,[1] and another.[2]

This paragraph won't be part of the note, because it isn't indented.

1. Here is the footnote. ↩︎

2. Here's one with multiple blocks.

   Subsequent paragraphs are indented to show that they belong to the previous footnote.

       { some.code }

   The whole paragraph can be indented, or just the first line. In this way, multi-paragraph footnotes work like multi-paragraph list items. ↩︎

. They could terminate each other: . [^1][^2][^3] [^1]: foo [^2]: bar [^3]: baz .

[1][2][3]

1. foo ↩︎

2. bar ↩︎

3. baz ↩︎

. They could be inside blockquotes, and are lazy: . [^foo] > [^foo]: bar baz .

[1]

1. bar baz ↩︎

. Their labels could not contain spaces or newlines: . [^ foo]: bar baz [^foo ]: bar baz .

[^ foo]: bar baz

[^foo ]: bar baz

. We support inline notes too (pandoc example): . Here is an inline note.^[Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note.] .

Here is an inline note.[1]

1. Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note. ↩︎

. They could have arbitrary markup: . foo^[ *bar* ] .

foo[1]

1. bar ↩︎

. Duplicate footnotes: . [^xxxxx] [^xxxxx] [^xxxxx]: foo .

[1] [1:1]

1. foo ↩︎ ↩︎

. Indents: . [^xxxxx] [^yyyyy] [^xxxxx]: foo --- [^yyyyy]: foo --- .

[1] [2]

1. ## foo

   ↩︎

2. foo ↩︎

. Indents for the first line: . [^xxxxx] [^yyyyy] [^xxxxx]: foo [^yyyyy]: foo .

[1] [2]

1. foo ↩︎

2.     foo

   ↩

. Indents for the first line (tabs): . [^xxxxx] [^xxxxx]: foo .

[1]

1. foo ↩︎

. Security 1 . [^__proto__] [^__proto__]: blah .

[1]

1. blah ↩︎

. Security 2 . [^hasOwnProperty] [^hasOwnProperty]: blah .

[1]

1. blah ↩︎

. Should allow links in inline footnotes . Example^[this is another example https://github.com] .

Example[1]

1. this is another example https://github.com ↩︎

. Nested blocks: . [^a] [^a]: abc def hij - list > block terminates here .

[1]

terminates here

1. abc

   def hij

   - list

   > block

   ↩︎

. Empty lines after blockquote+footnote (markdown-it-py#133) . > b [^1] Some text > c [^1]: d .

> b [1]

Some text

> c

1. d ↩︎

. Newline after footnote identifier . [^a] [^a]: b .

[1]

b

1. <-

. Indented by 4 spaces . [^1] [^1]: footnote .

    [^1]

    [^1]: footnote

. Indented by 4 spaces, DISABLE-CODEBLOCKS . [^1] [^1]: footnote .

[1]

1. footnote ↩︎

. refs with no definition standard . [^1] [^1] .

[^1] [^1]

. refs with no definition, ALWAYS_MATCH-REFS . [^1] [^1] .

[1] [1:1]

1. ↩︎ ↩︎

.