Skip to content

Commit 08ad5d4

Browse files
committed
Revert "FIX: Markdown bug", breaks build
This reverts commit 4a32cdd.
1 parent 7603faa commit 08ad5d4

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

test/javascripts/lib/markdown_test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ test("Traditional Line Breaks", function() {
5050
cooked(input, traditionalOutput, "It supports traditional markdown via a Site Setting");
5151
});
5252

53-
test("Unbalanced underscores", function() {
54-
cooked("[evil_trout][1] hello_\n\n[1]: http://eviltrout.com", "<p><a href=\"http://eviltrout.com\">evil_trout</a> hello_</p>");
55-
});
56-
5753
test("Line Breaks", function() {
5854
cooked("[] first choice\n[] second choice",
5955
"<p>[] first choice<br/>[] second choice</p>",

vendor/assets/javascripts/better_markdown.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,7 @@
643643
var DialectHelpers = {};
644644
DialectHelpers.inline_until_char = function( text, want ) {
645645
var consumed = 0,
646-
nodes = [],
647-
patterns = this.dialect.inline.__patterns__.replace('|_|', '');
646+
nodes = [];
648647

649648
while ( true ) {
650649
if ( text.charAt( consumed ) === want ) {
@@ -658,7 +657,7 @@
658657
return null;
659658
}
660659

661-
var res = this.dialect.inline.__oneElement__.call(this, text.substr( consumed ), patterns );
660+
var res = this.dialect.inline.__oneElement__.call(this, text.substr( consumed ) );
662661
consumed += res[ 0 ];
663662
// Add any returned nodes.
664663
nodes.push.apply( nodes, res.slice( 1 ) );

0 commit comments

Comments
 (0)