Revamping to matrix style
This commit is contained in:
19
node_modules/vscode-html-languageservice/lib/esm/utils/markup.js
generated
vendored
Normal file
19
node_modules/vscode-html-languageservice/lib/esm/utils/markup.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
export function normalizeMarkupContent(input) {
|
||||
if (!input) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof input === 'string') {
|
||||
return {
|
||||
kind: 'markdown',
|
||||
value: input
|
||||
};
|
||||
}
|
||||
return {
|
||||
kind: 'markdown',
|
||||
value: input.value
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user