FIX: Code blocks were trimming leading spaces sometimes when they should have only
trimmed trailing spaces.
This commit is contained in:
@@ -61,7 +61,7 @@ Discourse.Dialect.on("register", function(event) {
|
||||
next.unshift(MD.mk_block(n[2]));
|
||||
}
|
||||
|
||||
codeContents.push(n[1].trim());
|
||||
codeContents.push(n[1].replace(/\s+$/, ""));
|
||||
break;
|
||||
} else {
|
||||
codeContents.push(b);
|
||||
|
||||
Reference in New Issue
Block a user