Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to apply callback function from markdown? #3481

Open
selvavm opened this issue Sep 18, 2022 · 0 comments
Open

How to apply callback function from markdown? #3481

selvavm opened this issue Sep 18, 2022 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Other Not an enhancement or a bug

Comments

@selvavm
Copy link

selvavm commented Sep 18, 2022

Hi,

I am new to mermaid. I wanted to apply a callback function on load of a diagram. I tried below command but it didnt work (although theme changed).

%%{init: { 'theme':'dark', 'mermaid': {'callback': 'test'} } }%%
function test() {
   alert('Triggered')
}

Note: I am using mkdocs-materials, so I have the capability to only add new javascript but not override (so, not able to override the initialization of mermaid).

@selvavm selvavm added the Type: Other Not an enhancement or a bug label Sep 18, 2022
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Other Not an enhancement or a bug
Projects
None yet
Development

No branches or pull requests

1 participant