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 including external code snippets #328

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

mfontanini
Copy link
Owner

@mfontanini mfontanini commented Aug 3, 2024

This allows adding snippets that pull in an external source file. Attributes still work like you'd expect. Examples:

A rust file that allows execution:

```file +exec +line_numbers
path: snippet.rs
language: rust
```

A mermaid script that is rendered like you'd expect

```file +render
path: snippet.mmd
language: mermaid
```

Related to #307

@mfontanini mfontanini merged commit 322fad6 into master Aug 4, 2024
6 checks passed
@mfontanini mfontanini deleted the feat/external-snippet-import branch August 4, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant