diff --git a/test/footnotes_test.rb b/test/footnotes_test.rb index 2bb9d56d..4a0f3f28 100644 --- a/test/footnotes_test.rb +++ b/test/footnotes_test.rb @@ -5,13 +5,11 @@ class FootnotesTest < Minitest::Test def test_to_html md = <<~MARKDOWN - # footnotes Let's render some footnotes[^1] [^1]: This is a footnote MARKDOWN expected = <<~HTML -

footnotes

Let's render some footnotes1

    @@ -22,6 +20,6 @@ def test_to_html
HTML - assert_equal(expected, Commonmarker.to_html(md, options: { extension: { header_ids: nil, footnotes: true } })) + assert_equal(expected, Commonmarker.to_html(md, options: { extension: { footnotes: true } })) end end diff --git a/test/frontmatter_test.rb b/test/frontmatter_test.rb index 86aea0ab..19adf723 100644 --- a/test/frontmatter_test.rb +++ b/test/frontmatter_test.rb @@ -16,11 +16,11 @@ def test_frontmatter_does_not_interfere_with_codeblock end def test_frontmatter_custom_delimiter - md = "---\nyaml: true\nage: 42\n---\n# Title 1" + md = "---\nyaml: true\nage: 42\n---\nThis is some text" expected = <<~HTML -

Title 1

+

This is some text

HTML - assert_equal(expected, Commonmarker.to_html(md, options: { extension: { header_ids: nil, front_matter_delimiter: "---" } })) + assert_equal(expected, Commonmarker.to_html(md, options: { extension: { front_matter_delimiter: "---" } })) end end