mirror of
https://github.com/vinayaugustine/obsidian-mermaid-links.git
synced 2025-12-05 20:38:59 -05:00
No description
* Updated README.md with basic instructions * Change license to MIT licensed by me |
||
|---|---|---|
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
Obsidian Mermaid Links
A plugin for Obsidian that adds convenient "Edit" and "Full Screen" links to all your Mermaid diagrams.
Features
- Automatically adds links below any Mermaid diagram in your notes
- "Edit" link opens the diagram in Mermaid Live Editor for easy modification
- "Full Screen" link opens the diagram in Mermaid Live Viewer for better visibility
- Customizable link text through plugin settings
How It Works
The plugin scans your notes for Mermaid code blocks and adds two links below each diagram:
- Edit: Opens the diagram in Mermaid Live Editor, allowing you to modify the diagram in a specialized editor
- Full Screen: Opens the diagram in Mermaid Live Viewer, providing a clean, full-screen view
Both links use Mermaid Live's PAKO compression format to transfer your diagram code efficiently.
Installation
- Open Obsidian Settings
- Go to Community Plugins and disable Safe Mode
- Click "Browse" and search for "Mermaid Links"
- Install the plugin and enable it
Or install manually:
- Download the latest release from the GitHub releases page
- Extract the files into your vault's
.obsidian/plugins/obsidian-mermaid-linksfolder - Reload Obsidian and enable the plugin in the settings
Configuration
You can customize the text displayed for both links in the plugin settings:
- Edit Link Text: The text to display for the edit link (default: "Edit")
- Full Screen Link Text: The text to display for the full screen link (default: "Full Screen")
Usage Example
- Create a Mermaid diagram in your note:
```mermaid
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> B
```
- The plugin automatically adds "Edit" and "Full Screen" links below the diagram
- Click the "Edit" link to modify your diagram in Mermaid Live Editor
- Click the "Full Screen" link to view your diagram in a clean, full-screen interface
Compatibility
- Requires Obsidian v0.15.0 or above
- Works with all standard Mermaid diagram types supported by Obsidian
License
This project is licensed under the MIT License.
Support
If you encounter any issues or have feature requests, please file an issue on the GitHub repository.