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

feat: allow auto rendering code snippets #418

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

mfontanini
Copy link
Owner

This adds a new auto_render_languages option (meaning it can be configured in the config file or in the presentation itself) that specifies a list of languages for which the +render attribute is implied and are therefore automatically rendered. This means for example this presentation would have its mermaid diagram automatically rendered as an image:

---
options:
    auto_render_languages:
        - mermaid
---

```mermaid
sequenceDiagram
    bob ->> mike: oh hi
```

Fixes #416

@mfontanini mfontanini merged commit 954f112 into master Jan 20, 2025
6 checks passed
@mfontanini mfontanini deleted the feat/auto-render branch January 20, 2025 21:36
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.

Automatically render mermaid diagrams
1 participant