Extract duplicate settings logic to own file

This commit is contained in:
Matt Bierner
2018-03-05 10:52:50 -08:00
parent 36c3f4b008
commit e49c6b3f8e
4 changed files with 74 additions and 62 deletions

View File

@@ -0,0 +1,9 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export function getSettings(): any {
return JSON.parse(document.getElementById('vscode-markdown-preview-data').getAttribute('data-settings'));
}