Rework markdown preview code to better support markdown preview editors

Splits the preview part of the markdown preview from the dynamic preview management part of things. Static preview swap to preview the active markdown file and don't scroll sync with any other markdown files
This commit is contained in:
Matt Bierner
2020-04-10 22:47:40 -07:00
parent 49bcd96469
commit 9cfd597153
6 changed files with 519 additions and 321 deletions

View File

@@ -5,7 +5,8 @@
export interface PreviewSettings {
readonly source: string;
readonly line: number;
readonly line?: number;
readonly fragment?: string
readonly lineCount: number;
readonly scrollPreviewWithEditor?: boolean;
readonly scrollEditorWithPreview: boolean;