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

mermaid-mode redefines ob-mermaid org-babel-execute:mermaid #17

Open
nahuel opened this issue Apr 8, 2021 · 1 comment
Open

mermaid-mode redefines ob-mermaid org-babel-execute:mermaid #17

nahuel opened this issue Apr 8, 2021 · 1 comment

Comments

@nahuel
Copy link

nahuel commented Apr 8, 2021

Both mermaid-mode and ob-mermaid defines the org-babel-execute:mermaid function who controls the evaluation of org-mode mermaid src blocks. When loading both packages, the loading order will determine which one will be applied. This can be confusing. For example, if the mermaid-mode one is the active and you use the :theme parameter (supported by ob-mermaid but not by mermaid-mode), it will be silently ignored.

I think the correct thing to do is to integrate ob-mermaid with mermaid-mode or remove org-babel-execute:mermaid from mermaid-mode.

@jaybarra
Copy link

Workaround for now is to fix order of loading, or overwrite the local defun with the one from ob-mermaid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants