Mermaid.js Helper (OMH)

by Francesco Di Cursi
5
4
3
2
1
Score: 53/100

Description

Category: Productivity Tools

The Mermaid.js Helper (OMH) plugin for Obsidian enhances the usability of Mermaid.js flowcharts and graphs. It introduces various commands to streamline workflow, such as cleaning up Mermaid code by organizing variable declarations, applying regex patterns to Mermaid styles or classes, and creating files from a list of titles or sections. Additional features include copying global color groups to local graphs and converting lists into link formats. This plugin is ideal for users who frequently work with Mermaid.js diagrams and need efficient tools for managing and customizing their flowcharts and graphs within Obsidian.

Reviews

No reviews yet.

Stats

5
stars
6,594
downloads
0
forks
1,053
days
1,101
days
1,188
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
0
open issues
1
closed issues
0
commits

Latest Version

3 years ago

Changelog

README file from

Github

Mermaid.js-Helper-OMH-plugin

An Obsidian plugin to help with mermaid.js graph/flowcharts plus extra commands.

Mermaid commands:

  • > Clean code for Mermaid.js ( [ graph | flowchart ] ):

    Select ONLY the mermaid.js cell of type graph or flowchart and run the command in order to move variable declarations at the top.

  • > Regex for Mermaid.js ( [ style | class ] ):

    Select ONLY the mermaid.js style or class row giving a regex pattern as id

    (eg. style|class /any-regex-pattern/ fill:#f9f,stroke:#333|className)

Extra commands:

  • > Create empty files from list of titles:

    Select a list of names separated by new line and run the command to create those files in the active folder

  • > Create files from sections (H2 as section title)

    Select all sections, each having H2 as title, and run the command to create those files in the active folder

  • > Copy global colorGroups to local graph:

    Set the colorGroups in the global graph view, then open a file and run the command 'Graph view: open local graph'. Finally, in the same active file, run this plugin command and restart Obsidian.

  • Given a list of strings separated by either line break, comma or comma plus line break, it returns a list of links

    e.g.: a,b,c --> [[a]],[[b]],[[c]]

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.