diff --git a/inline_test.go b/inline_test.go index ef8e4c4..35539ef 100644 --- a/inline_test.go +++ b/inline_test.go @@ -818,14 +818,15 @@ func TestAutoLink(t *testing.T) { var footnoteTests = []string{ "testing footnotes.[^a]\n\n[^a]: This is the note\n", `

testing footnotes.1

+

    -
  1. This is the note -
  2. +
  3. This is the note
+
`, @@ -844,6 +845,7 @@ No longer in the footnote `

testing long1 notes.

No longer in the footnote

+

@@ -857,9 +859,9 @@ No longer in the footnote some code

-

Paragraph 3

- +

Paragraph 3

+
`, @@ -882,21 +884,23 @@ what happens here

omg

what happens here

+

    -
  1. this is note c -
  2. -
  3. this is note d -
  4. +
  5. this is note c
  6. + +
  7. this is note d
+
`, "testing inline^[this is the note] notes.\n", `

testing inline1 notes.

+

@@ -904,11 +908,13 @@ what happens here
  1. this is the note
+
`, "testing multiple[^1] types^[inline note] of notes[^2]\n\n[^2]: the second deferred note\n[^1]: the first deferred note\n\n\twhich happens to be a block\n", `

testing multiple1 types2 of notes3

+

@@ -916,12 +922,13 @@ what happens here
  1. the first deferred note

    -

    which happens to be a block

    -
  2. +

    which happens to be a block

    +
  3. inline note
  4. -
  5. the second deferred note -
  6. + +
  7. the second deferred note
+
`, @@ -932,6 +939,7 @@ what happens here may be multiple paragraphs. `, `

This is a footnote12

+

@@ -939,21 +947,22 @@ what happens here
  1. the footnote text.

    -

    may be multiple paragraphs.

    -
  2. +

    may be multiple paragraphs.

    +
  3. and this is an inline footnote
+
`, "empty footnote[^]\n\n[^]: fn text", - "

empty footnote1

\n
\n\n
\n\n
    \n
  1. fn text\n
  2. \n
\n
\n", + "

empty footnote1

\n\n
\n\n
\n\n
    \n
  1. fn text
  2. \n
\n\n
\n", "Some text.[^note1]\n\n[^note1]: fn1", - "

Some text.1

\n
\n\n
\n\n
    \n
  1. fn1\n
  2. \n
\n
\n", + "

Some text.1

\n\n
\n\n
\n\n
    \n
  1. fn1
  2. \n
\n\n
\n", "Some text.[^note1][^note2]\n\n[^note1]: fn1\n[^note2]: fn2\n", - "

Some text.12

\n
\n\n
\n\n
    \n
  1. fn1\n
  2. \n
  3. fn2\n
  4. \n
\n
\n", + "

Some text.12

\n\n
\n\n
\n\n
    \n
  1. fn1
  2. \n\n
  3. fn2
  4. \n
\n\n
\n", `Bla bla [^1] [WWW][w3] @@ -962,14 +971,15 @@ what happens here [w3]: http://www.w3.org/ `, `

Bla bla 1 WWW

+

    -
  1. This is a footnote -
  2. +
  3. This is a footnote
+
`, @@ -978,14 +988,15 @@ what happens here [^fn1]: Fine print `, `

This is exciting!1

+

    -
  1. Fine print -
  2. +
  3. Fine print
+
`, } @@ -1029,16 +1040,17 @@ func TestNestedFootnotes(t *testing.T) { [^fn2]: Obelisk`, `

Paragraph.1

+

    -
  1. Asterisk2 -
  2. -
  3. Obelisk -
  4. +
  5. Asterisk2
  6. + +
  7. Obelisk
+
`, }