This is an automated email from the ASF dual-hosted git repository. brondsem pushed a commit to branch db/8408 in repository https://gitbox.apache.org/repos/asf/allura.git
commit 197b8b13aec02b87479ea83d6c60909850e5a50a Author: Dave Brondsema <[email protected]> AuthorDate: Wed Feb 9 12:55:33 2022 -0500 fixup! [#8408] start Markdown upgrade, simple cleanups --- Allura/allura/tests/test_globals.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Allura/allura/tests/test_globals.py b/Allura/allura/tests/test_globals.py index 65a5bd9..3268332 100644 --- a/Allura/allura/tests/test_globals.py +++ b/Allura/allura/tests/test_globals.py @@ -504,6 +504,23 @@ def foo(): pass ) +def test_markdown_list_without_break(): + # this is not a valid way to make a list in original Markdown or python-markdown + # https://github.com/Python-Markdown/markdown/issues/874 + # it is valid in the CommonMark spec https://spec.commonmark.org/0.30/#lists + # TODO: try https://github.com/adamb70/mdx-breakless-lists + # or https://gitlab.com/ayblaq/prependnewline + assert_equal( + g.markdown.convert('''\ +Regular text +* first item +* second item'''), + '<div class="markdown_content"><p>Regular text<br/>\n' + '<em> first item<br/>\n' + '</em> second item</p></div>' + ) + + def test_markdown_autolink(): tgt = 'http://everything2.com/?node=nate+oostendorp' s = g.markdown.convert('This is %s' % tgt)
