Skip to content

Instantly share code, notes, and snippets.

@kevinmichaelchen
Created November 13, 2025 15:27
Show Gist options
  • Select an option

  • Save kevinmichaelchen/08c689c9ca9131be0b78c687a9b78299 to your computer and use it in GitHub Desktop.

Select an option

Save kevinmichaelchen/08c689c9ca9131be0b78c687a9b78299 to your computer and use it in GitHub Desktop.
Testing animated D2 SVG in GitHub Markdown

Testing Animated SVG in GitHub Markdown

This is a test to see if animated D2 SVG files work in GitHub's Markdown renderer.

Method 1: Object Tag

Your browser doesn't support embedded SVG. View the diagram directly.

Method 2: Image Tag

Animated SVG

Method 3: Raw HTML img tag

Animated SVG

Method 4: Direct Link

View animated SVG directly


Expected: The animation should cycle through 3 steps showing alice and bob exchanging messages.

Testing: Which methods work on GitHub?

shape: sequence_diagram
alice
bob
steps: {
1: {
alice -> bob: Hello
}
2: {
alice -> bob: Hello
bob -> alice: Hi back
}
3: {
alice -> bob: Hello
bob -> alice: Hi back
alice -> bob: How are you?
}
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment