diff --git a/content/content-formatting-examples/hextra/asciinema/index.md b/content/content-formatting-examples/hextra/asciinema/index.md index 8160992..df7712e 100644 --- a/content/content-formatting-examples/hextra/asciinema/index.md +++ b/content/content-formatting-examples/hextra/asciinema/index.md @@ -23,7 +23,8 @@ Embeds an [asciinema](https://asciinema.org/) terminal recording player. The pla | `loop` | Loop playback | `false` | | `poster` | Poster/thumbnail specification | _(none)_ | | `markers` | Comma-separated time markers (e.g., `"5:Intro,10:Demo"`) | _(none)_ | +| `filename` | Optional filename to display as a header | _(none)_ | **Example:** -{{< hextra/asciinema file="demo.cast" speed="2" autoplay="true" loop="true" >}} +{{< hextra/asciinema file="demo.cast" speed="2" autoplay="true" loop="true" filename="terminal-session.cast" >}} diff --git a/content/content-formatting-examples/hextra/jupyter/index.md b/content/content-formatting-examples/hextra/jupyter/index.md index 07bb72a..bff70dc 100644 --- a/content/content-formatting-examples/hextra/jupyter/index.md +++ b/content/content-formatting-examples/hextra/jupyter/index.md @@ -18,7 +18,8 @@ Renders a Jupyter Notebook (`.ipynb`) as code blocks and Markdown cells. |-----------|-------------|---------| | positional | Path or URL to the `.ipynb` file | _(required)_ | | `allowUnsafeHTML` | Set to `"true"` to render raw HTML from notebook outputs | `false` | +| `filename` | Optional filename to display as a header | _(none)_ | **Example:** -{{% hextra/jupyter "example-notebook.ipynb" %}} +{{% hextra/jupyter "example-notebook.ipynb" filename="analysis.ipynb" %}} diff --git a/content/content-formatting-examples/markdown/code.md b/content/content-formatting-examples/markdown/code.md index bc13b0b..210adec 100644 --- a/content/content-formatting-examples/markdown/code.md +++ b/content/content-formatting-examples/markdown/code.md @@ -10,4 +10,12 @@ draft: true This is a code block. ``` +### Code block with filename + +```go {filename="main.go"} +package main +import "fmt" +func main() { fmt.Println("hello") } +``` + Inline code like `var foo = "bar";` is supported.