Flexible LHS and RHS with flex

This commit is contained in:
Zef Hemel
2022-04-04 18:33:13 +02:00
parent a7cd3ea7e0
commit 1b0048cdcf
11 changed files with 193 additions and 149 deletions
+2
View File
@@ -3,6 +3,8 @@ functions:
path: "./markdown.ts:togglePreview"
command:
name: "Toggle Markdown Preview"
key: Ctrl-p
mac: Cmd-p
preview:
path: "./markdown.ts:updateMarkdownPreview"
env: client
+1 -1
View File
@@ -48,7 +48,7 @@ export async function updateMarkdownPreview() {
}
});
let html = md.render(renderMarkdown(mdTree));
await showRhs(`<html><body>${html}</body></html>`);
await showRhs(`<html><body>${html}</body></html>`, 1);
}
async function hideMarkdownPreview() {