Update test output to match Markdown v3 output

Markdown v3 changes slightly the generated HTML for footnotes.
This commit is contained in:
MinchinWeb 2018-10-13 09:47:10 -06:00
commit 2ef1a1895b
2 changed files with 11 additions and 8 deletions

View file

@ -447,20 +447,23 @@ class MdReaderTest(ReaderTest):
_path('article_with_markdown_and_footnote.md')) _path('article_with_markdown_and_footnote.md'))
expected_content = ( expected_content = (
'<p>This is some content' '<p>This is some content'
'<sup id="fnref-1"><a class="footnote-ref" href="#fn-1"' '<sup id="fnref:1"><a class="footnote-ref" href="#fn:1"'
' rel="footnote"'
'>1</a></sup>' '>1</a></sup>'
' with some footnotes' ' with some footnotes'
'<sup id="fnref-footnote"><a class="footnote-ref" ' '<sup id="fnref:footnote"><a class="footnote-ref" '
'href="#fn-footnote">2</a></sup></p>\n' 'href="#fn:footnote" rel="footnote">2</a></sup></p>\n'
'<div class="footnote">\n' '<div class="footnote">\n'
'<hr>\n<ol>\n<li id="fn-1">\n' '<hr>\n<ol>\n<li id="fn:1">\n'
'<p>Numbered footnote&#160;' '<p>Numbered footnote&#160;'
'<a class="footnote-backref" href="#fnref-1" ' '<a class="footnote-backref" href="#fnref:1" '
'rev="footnote" '
'title="Jump back to footnote 1 in the text">&#8617;</a></p>\n' 'title="Jump back to footnote 1 in the text">&#8617;</a></p>\n'
'</li>\n<li id="fn-footnote">\n' '</li>\n<li id="fn:footnote">\n'
'<p>Named footnote&#160;' '<p>Named footnote&#160;'
'<a class="footnote-backref" href="#fnref-footnote"' '<a class="footnote-backref" href="#fnref:footnote"'
' rev="footnote"'
' title="Jump back to footnote 2 in the text">&#8617;</a></p>\n' ' title="Jump back to footnote 2 in the text">&#8617;</a></p>\n'
'</li>\n</ol>\n</div>') '</li>\n</ol>\n</div>')
expected_metadata = { expected_metadata = {

View file

@ -2,7 +2,7 @@
mock mock
# Optional Packages # Optional Packages
Markdown Markdown >= 3.0
BeautifulSoup4 BeautifulSoup4
lxml lxml
typogrify typogrify