File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
extensions/markdown-language-features/src Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import { ITextDocument } from './types/textDocument';
13
13
import { WebviewResourceProvider } from './util/resources' ;
14
14
import { isOfScheme , Schemes } from './util/schemes' ;
15
15
16
- const UNICODE_NEWLINE_REGEX = / \u2028 | \u2029 / g;
17
-
18
16
/**
19
17
* Adds begin line index to the output via the 'data-line' data attribute.
20
18
*/
@@ -189,7 +187,7 @@ export class MarkdownItEngine implements IMdParser {
189
187
private _tokenizeString ( text : string , engine : MarkdownIt ) {
190
188
this . _resetSlugCount ( ) ;
191
189
192
- return engine . parse ( text . replace ( UNICODE_NEWLINE_REGEX , '' ) , { } ) ;
190
+ return engine . parse ( text , { } ) ;
193
191
}
194
192
195
193
private _resetSlugCount ( ) : void {
You can’t perform that action at this time.
0 commit comments