mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
Do not preprocess Unicode newlines in Markdown preview (#166026)
Revert LS PS preprocessing in Markdown preview
This commit is contained in:
@@ -13,8 +13,6 @@ import { ITextDocument } from './types/textDocument';
|
||||
import { WebviewResourceProvider } from './util/resources';
|
||||
import { isOfScheme, Schemes } from './util/schemes';
|
||||
|
||||
const UNICODE_NEWLINE_REGEX = /\u2028|\u2029/g;
|
||||
|
||||
/**
|
||||
* Adds begin line index to the output via the 'data-line' data attribute.
|
||||
*/
|
||||
@@ -189,7 +187,7 @@ export class MarkdownItEngine implements IMdParser {
|
||||
private _tokenizeString(text: string, engine: MarkdownIt) {
|
||||
this._resetSlugCount();
|
||||
|
||||
return engine.parse(text.replace(UNICODE_NEWLINE_REGEX, ''), {});
|
||||
return engine.parse(text, {});
|
||||
}
|
||||
|
||||
private _resetSlugCount(): void {
|
||||
|
||||
Reference in New Issue
Block a user