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

org-babel-execute:mermaid support src block options #38

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

lgfang
Copy link
Contributor

@lgfang lgfang commented Sep 5, 2023

This commit adds support of :theme, :width, :height and :background-color in org mode src blocks. For example:

 #+begin_src mermaid :file test.png :width 80
   sequenceDiagram
       A ->> B: hi
       B ->> A: bye
 #+end_src

This commit adds support of `:theme`, `:width`, `:height` and
`:background-color` in org mode src blocks. For example:

```text
 #+begin_src mermaid :file test.png :exports source :width 80
   sequenceDiagram
       A ->> B: hi
       B ->> A: bye
 #+end_src
```
Copy link
Owner

@abrochard abrochard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff! Thank you!

@abrochard abrochard merged commit 4cdc76e into abrochard:master Sep 5, 2023
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

Successfully merging this pull request may close these issues.

2 participants