mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
parent
cd293fb61a
commit
75b7707460
|
@ -293,7 +293,7 @@ showdown.Converter = function (converterOptions) {
|
||||||
text = text.replace(/\r/g, '\n'); // Mac to Unix
|
text = text.replace(/\r/g, '\n'); // Mac to Unix
|
||||||
|
|
||||||
// Stardardize line spaces
|
// Stardardize line spaces
|
||||||
text = text.replace(/\u00A0/g, ' ');
|
//text = text.replace(/\u00A0/g, ' ');
|
||||||
|
|
||||||
if (options.smartIndentationFix) {
|
if (options.smartIndentationFix) {
|
||||||
text = rTrimInputText(text);
|
text = rTrimInputText(text);
|
||||||
|
|
|
@ -56,7 +56,7 @@ showdown.subParser('makehtml.codeSpan', function (text, options, globals) {
|
||||||
c = c.replace(/^([ \t]*)/g, ''); // leading whitespace
|
c = c.replace(/^([ \t]*)/g, ''); // leading whitespace
|
||||||
c = c.replace(/[ \t]*$/g, ''); // trailing whitespace
|
c = c.replace(/[ \t]*$/g, ''); // trailing whitespace
|
||||||
// remove newlines
|
// remove newlines
|
||||||
c = c.replace(/\n/, ' ');
|
c = c.replace(/\n/g, ' ');
|
||||||
|
|
||||||
let captureStartEvent = new showdown.Event('makehtml.codeSpan.onCapture', c);
|
let captureStartEvent = new showdown.Event('makehtml.codeSpan.onCapture', c);
|
||||||
captureStartEvent
|
captureStartEvent
|
||||||
|
|
|
@ -42,8 +42,6 @@ describe('makeHtml() commonmark testsuite', function () {
|
||||||
testsuite[section][i].expected = testsuite[section][i].expected.replace('language-;', '; language-;');
|
testsuite[section][i].expected = testsuite[section][i].expected.replace('language-;', '; language-;');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Hard line breaks_638':
|
|
||||||
console.log(testsuite[section][i].input);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
it(name, assertion(testsuite[section][i], converter, true));
|
it(name, assertion(testsuite[section][i], converter, true));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user