Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
3 changes: 2 additions & 1 deletion content/content-formatting-examples/hextra/jupyter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}}
8 changes: 8 additions & 0 deletions content/content-formatting-examples/markdown/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading