File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ function adjustBlock(block) {
273
273
/**
274
274
* Adjusts ESLint messages to point to the correct location in the Markdown.
275
275
* @param {Message } message A message from ESLint.
276
- * @returns {Message } The same message, but adjusted ot the correct location.
276
+ * @returns {Message } The same message, but adjusted to the correct location.
277
277
*/
278
278
return function adjustMessage ( message ) {
279
279
@@ -308,7 +308,7 @@ function adjustBlock(block) {
308
308
// Apply the mapping delta for this range.
309
309
return range + block . rangeMap [ i - 1 ] . md ;
310
310
} ) ,
311
- text : message . fix . text . replace ( "\n" , `\n${ block . baseIndentText } ` )
311
+ text : message . fix . text . replace ( / \n / g , `\n${ block . baseIndentText } ` )
312
312
} ;
313
313
}
314
314
Original file line number Diff line number Diff line change @@ -665,6 +665,7 @@ describe("plugin", () => {
665
665
">" ,
666
666
"> > ```js" ,
667
667
"> > console.log('Hello, \\" ,
668
+ "> > new\\" ,
668
669
"> > world!')" ,
669
670
"> > console.log('Hello, \\" ,
670
671
"> > world!')" ,
@@ -682,6 +683,7 @@ describe("plugin", () => {
682
683
">" ,
683
684
"> > ```js" ,
684
685
"> > console.log(\"Hello, \\" ,
686
+ "> > new\\" ,
685
687
"> > world!\")" ,
686
688
"> > console.log(\"Hello, \\" ,
687
689
"> > world!\")" ,
You can’t perform that action at this time.
0 commit comments