{ "identifier": "unsupervised.MermaidPreview", "name": "Mermaid Preview", "organization": "Unsupervised", "description": "Preview Markdown as rendered HTML in a preview tab, with Mermaid diagrams drawn inline.", "version": "1.0", "min_runtime": "10", "categories": ["commands"], "license": "MIT", "repository": "https://git.unsupervised.ca/", "main": "main.js", "entitlements": { "filesystem": "readwrite" }, "commands": { "extensions": [ {"title": "Preview Markdown", "command": "mermaidpreview.preview", "shortcut": "ctrl-shift-m"}, {"title": "Refresh Preview", "command": "mermaidpreview.refresh"}, {"separator": true}, {"title": "Remove Generated Files", "command": "mermaidpreview.clean"} ], "editor": [ { "title": "Preview Markdown", "command": "mermaidpreview.preview", "filters": {"syntaxes": ["markdown", "mermaid"]} } ] }, "config": [ { "key": "mermaidpreview.updateMode", "title": "Update preview", "description": "When to regenerate the preview after the first time you open it.", "type": "enum", "values": [ ["save", "On save"], ["live", "As you type"], ["manual", "Only when I ask"] ], "default": "save" }, { "key": "mermaidpreview.cleanUpOnClose", "title": "Remove the generated page when its tab closes", "description": "Also removes it when the Markdown file closes, and takes the shared assets with it once the last preview is gone.", "type": "boolean", "default": true }, { "key": "mermaidpreview.theme", "title": "Theme", "description": "Auto follows the system appearance, the same way Nova's own Markdown preview does.", "type": "enum", "values": [ ["auto", "Auto"], ["light", "Light"], ["dark", "Dark"] ], "default": "auto" }, { "key": "mermaidpreview.contentWidth", "title": "Content width", "description": "Maximum width of the rendered text column, in pixels. Diagrams and tables may exceed it.", "type": "number", "default": 860 }, { "key": "mermaidpreview.outputDirectory", "title": "Generated files", "description": "Where the generated HTML and its assets are written, relative to the preview root. Must stay inside the preview root so Nova can serve it.", "type": "string", "default": ".nova/MermaidPreview", "placeholder": ".nova/MermaidPreview" } ] }