diff --git a/inline_test.go b/inline_test.go index 9cd8033..62fceac 100644 --- a/inline_test.go +++ b/inline_test.go @@ -1000,6 +1000,33 @@ func TestFootnotesWithParameters(t *testing.T) { doTestsInlineParam(t, tests, Options{Extensions: EXTENSION_FOOTNOTES}, HTML_FOOTNOTE_RETURN_LINKS, params) } +func TestNestedFootnotes(t *testing.T) { + var tests = []string{ + `Paragraph.[^fn1] + +[^fn1]: + Asterisk[^fn2] + +[^fn2]: + Obelisk`, + `

Paragraph.1

+
+ +
+ +
    +
  1. Asterisk2 +
  2. +
  3. Obelisk +
  4. +
+
+`, + } + doTestsInlineParam(t, tests, Options{Extensions: EXTENSION_FOOTNOTES}, 0, + HtmlRendererParameters{}) +} + func TestInlineComments(t *testing.T) { var tests = []string{ "Hello