-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Description
Currently it seems that Chrome is required to render files that contain mermaid.
I think it is guaranteed that Windows has Microsoft Edge installed, so it would be useful to be able to use Microsoft Edge instead of Chrome.
quarto-cli/src/core/puppeteer.ts
Lines 201 to 226 in cc5119e
| async function findChrome(): Promise<string | undefined> { | |
| let path; | |
| if (Deno.build.os === "darwin") { | |
| path = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"; | |
| } else if (Deno.build.os === "linux") { | |
| path = await which("google-chrome"); | |
| if (!path) { | |
| path = await which("chromium-browser"); | |
| } | |
| } else if (Deno.build.os === "windows") { | |
| // Try the HKLM key | |
| path = await readRegistryKey( | |
| "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", | |
| "(Default)", | |
| ); | |
| // Try the HKCR key | |
| if (!path) { | |
| path = await readRegistryKey( | |
| "HKCR\\ChromeHTML\\shell\\open\\command", | |
| "(Default)", | |
| ); | |
| } | |
| } | |
| return path; | |
| } |
mcanouil
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done