Skip to content

Latest commit

 

History

History
374 lines (306 loc) · 8.15 KB

File metadata and controls

374 lines (306 loc) · 8.15 KB

Pandoc example: . Here is a footnote reference,1 and another.2

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:

. 134

[1][2][3]


  1. foo ↩︎

  2. bar ↩︎

  3. baz ↩︎

.

They could be inside blockquotes, and are lazy: . 5

[1]


  1. bar baz ↩︎

.

Their labels could not contain spaces or newlines:

. 5: bar baz

[^]: 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: . 6 6

[1] [1:1]


  1. foo ↩︎ ↩︎

.

Indents:

. 6 7


.

[1] [2]



  1. foo

    ↩︎
  2. foo ↩︎

.

Indents for the first line:

. 6 7

[1] [2]


  1. foo ↩︎

  2. foo
    
.

Indents for the first line (tabs): . 6

[1]


  1. foo ↩︎

.

Security 1 . 8

[1]


  1. blah ↩︎

.

Security 2 . 9

[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: . 10

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

.

b [1]

Some text

c


  1. d ↩︎

.

Newline after footnote identifier . 10

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 ↩︎

.

Footnotes

  1. Here is the footnote. 2 3 4 5

  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.

  3. bar

  4. baz .

  5. bar baz . 2

  6. foo . 2 3 4 5

  7. foo 2

  8. blah .

  9. blah .

  10. abc

    def hij

    • list

    block

    2