2025-03-11 10:25:03 -04:00
# Obsidian Mermaid Links
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
A plugin for [Obsidian ](https://obsidian.md ) that adds convenient "Edit" and "Full Screen" links to all your Mermaid diagrams.
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## Features
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
- Automatically adds links below any Mermaid diagram in your notes
- "Edit" link opens the diagram in [Mermaid Live Editor ](https://mermaid.live/edit ) for easy modification
- "Full Screen" link opens the diagram in [Mermaid Live Viewer ](https://mermaid.live/view ) for better visibility
- Customizable link text through plugin settings
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## How It Works
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
The plugin scans your notes for Mermaid code blocks and adds two links below each diagram:
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
1. **Edit** : Opens the diagram in Mermaid Live Editor, allowing you to modify the diagram in a specialized editor
2. **Full Screen** : Opens the diagram in Mermaid Live Viewer, providing a clean, full-screen view
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
Both links use Mermaid Live's PAKO compression format to transfer your diagram code efficiently.
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## Installation
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
1. Open Obsidian Settings
2. Go to Community Plugins and disable Safe Mode
3. Click "Browse" and search for "Mermaid Links"
4. Install the plugin and enable it
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
Or install manually:
- Download the latest release from the [GitHub releases page ](https://github.com/vinayaugustine/obsidian-mermaid-links/releases )
- Extract the files into your vault's `.obsidian/plugins/obsidian-mermaid-links` folder
- Reload Obsidian and enable the plugin in the settings
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## Configuration
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
You can customize the text displayed for both links in the plugin settings:
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
- **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")
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## Usage Example
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
1. Create a Mermaid diagram in your note:
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
````markdown
```mermaid
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> B
```
````
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
2. The plugin automatically adds "Edit" and "Full Screen" links below the diagram
3. Click the "Edit" link to modify your diagram in Mermaid Live Editor
4. Click the "Full Screen" link to view your diagram in a clean, full-screen interface
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## Compatibility
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
- Requires Obsidian v0.15.0 or above
- Works with all standard Mermaid diagram types supported by Obsidian
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## License
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
This project is licensed under the [MIT License ](LICENSE ).
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
## Support
2025-03-10 16:56:36 -04:00
2025-03-11 10:25:03 -04:00
If you encounter any issues or have feature requests, please file an issue on the [GitHub repository ](https://github.com/vinayaugustine/obsidian-mermaid-links/issues ).