mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 22:26:02 +08:00
REMOVE: Auto quoting confused more people than it helped.
This commit is contained in:
@ -30,15 +30,6 @@ test("basic cooking", function() {
|
||||
cooked("brussel sproutes are *awful*.", "<p>brussel sproutes are <em>awful</em>.</p>", "it doesn't swallow periods.");
|
||||
});
|
||||
|
||||
test("Auto quoting", function() {
|
||||
cooked('"My fake plants died because I did not pretend to water them."',
|
||||
"<p><blockquote>My fake plants died because I did not pretend to water them.</blockquote></p>",
|
||||
"it converts single line quotes to blockquotes");
|
||||
cooked('"hello\nworld"', "<p>\"hello<br/>world\"</p>", "It doesn't convert multi line quotes");
|
||||
cooked('"hello "evil" trout"', '<p>"hello "evil" trout"</p>', "it doesn't format quotes in the middle of a line");
|
||||
cooked('["text"', '<p>["text"</p>', "it recognizes leading tag-like text");
|
||||
});
|
||||
|
||||
test("Traditional Line Breaks", function() {
|
||||
var input = "1\n2\n3";
|
||||
cooked(input, "<p>1<br/>2<br/>3</p>", "automatically handles trivial newlines");
|
||||
|
Reference in New Issue
Block a user