Obsidian Embeds Demo
This post showcases the advanced embed features available in Axis, including media embeds, auto-embeds, math rendering, and Mermaid diagrams.
Auto-embeds
YouTube Videos
YouTube URLs are automatically embedded as responsive video players. Just paste a standard YouTube link as a markdown image:

Twitter/X Posts
Twitter/X post URLs are automatically embedded with theme-aware styling that matches your site’s light/dark mode:

Media Embeds
Axis supports embedding local media files directly in your posts using standard markdown image syntax. Just place the files in your post’s folder and reference them.
Video

Audio


Math
Axis includes comprehensive LaTeX math support using KaTeX. All math works seamlessly in both light and dark themes.
Inline Math
Use single dollar signs for inline math: or .
Display Math
Use double dollar signs for centered display math:
Common Mathematical Notation
Fractions and Superscripts
- Fractions: ,
- Superscripts: ,
- Subscripts: ,
Greek Letters
Mathematical Symbols
- Summation:
- Product:
- Integral:
- Limit:
Matrices and Vectors
Complex Equations
Math in Callouts
Math works perfectly within callouts:
Where is the hypotenuse and and are the other two sides.
This is particularly useful for integrals involving products of functions.
Advanced Mathematical Typesetting
Aligned Equations
Cases and Piecewise Functions
Set Notation
- Natural numbers:
- Real numbers:
- Complex numbers:
- Set union:
- Set intersection:
- Subset:
Obsidian Compatibility
All math notation works identically in Obsidian and your published site:
- Inline math:
$...$syntax - Display math:
$$...$$syntax - LaTeX commands: Full support for standard LaTeX math commands
- Greek letters: Use
\alpha,\beta, etc. - Symbols: Use
\sum,\int,\infty, etc.
Diagrams
Axis supports Mermaid diagrams that automatically adapt to the current theme (light/dark).
Flowchart
graph TD
A[Start] --> B{Is it?}
B -->|Yes| C[OK]
C --> D[Rethink]
D --> B
B ---->|No| E[End]
Sequence Diagram
sequenceDiagram
participant Alice
participant Bob
participant John
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
Class Diagram
classDiagram
class Animal {
+String name
+int age
+makeSound()
}
class Dog {
+String breed
+bark()
}
class Cat {
+String color
+meow()
}
Animal <|-- Dog
Animal <|-- Cat
State Diagram
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
Entity Relationship Diagram
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
User Journey
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me
Gantt Chart
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2024-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2024-01-12 , 12d
another task : 24d
Pie Chart
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
Git Graph
gitGraph
commit
commit
branch develop
checkout develop
commit
commit
checkout main
merge develop
commit
commit
Complex Flowchart
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Car]
D --> G[Code on it]
E --> H[Use it]
F --> I[Drive it]
Responsive Design
All diagrams are responsive and work well on mobile devices, with proper scaling and overflow handling.
Further Reading
For standard markdown formatting examples, see Formatting Reference.