From 3fcfcd2a55fcc919cdf51e8419ca048bb741a9fb Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Mon, 27 Nov 2017 16:05:22 -0800 Subject: [PATCH] copy paste: Add toMarkdown test for `1. text`. --- frontend_tests/node_tests/copy_and_paste.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend_tests/node_tests/copy_and_paste.js b/frontend_tests/node_tests/copy_and_paste.js index 7350d89d31..f3c9a7f275 100644 --- a/frontend_tests/node_tests/copy_and_paste.js +++ b/frontend_tests/node_tests/copy_and_paste.js @@ -23,4 +23,10 @@ var copy_and_paste = zrequire('copy_and_paste'); // that this not use markdown syntax, since that feels unnecessary. assert.equal(copy_and_paste.paste_handler_converter(input), '[https://zulip.readthedocs.io/en/latest/subsystems/logging.html](https://zulip.readthedocs.io/en/latest/subsystems/logging.html "https://zulip.readthedocs.io/en/latest/subsystems/logging.html")'); + + input = '
1. text'; + // TODO: at minimum this should not be adding the '\\' before the '.', + // and the ' \n' is a bit strange as well + assert.equal(copy_and_paste.paste_handler_converter(input), + ' \n1\\. text'); }());