Mermaid.js Helper (OMH)

by francescodicursi
5
4
3
2
1
Score: 36/100

Description

Additional commands for mermaid.js workflow and more.

Reviews

No reviews yet.

Stats

stars
6,677
downloads
0
forks
45
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

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]]