- Ametrine
Digital garden template built with Astro
- Wikilinks and Graph
Master linking and graph visualization in Ametrine
- Quick Start
Get your Ametrine digital garden running in 5 minutes
- Syntax Reference
Quick reference for all Ametrine syntax features
Obsidian Features Demo
This note demonstrates the three main Obsidian features now supported in Ametrine.
Highlighting
You can highlight important text using the double equals syntax. This is useful for emphasizing key concepts or terms that you want to stand out in your notes.
Regular bold and italic text still work as expected, but highlights provide a different visual emphasis.
Callouts
Obsidian-style callouts allow you to create visually distinct blocks of information:
This is a simple note callout. Use it for general information or observations.
Callouts support markdown formatting including italics, lists, and links!
Be careful when using this feature - make sure you test it thoroughly before deploying to production.
Something went wrong! This callout type is perfect for documenting error conditions.
Here’s how you might use this in your notes:
- First, create a callout with
> [!type] - Add your content on subsequent lines
- Keep the
>prefix for all content
Callouts can contain multiple paragraphs and complex content.
They automatically inherit your theme colors!
Mermaid Diagrams
Create flowcharts, sequence diagrams, and more using Mermaid syntax:
Flowchart Example
graph TD A[Start] --> B{Is it working?} B -->|Yes| C[Great!] B -->|No| D[Debug] D --> B C --> E[Deploy]Sequence Diagram
sequenceDiagram participant User participant Browser participant Server User->>Browser: Enter URL Browser->>Server: HTTP Request Server->>Browser: HTML Response Browser->>User: Render PageClass Diagram
classDiagram class Note { +String title +String[] tags +String content +render() +save() } class Graph { +Node[] nodes +Edge[] edges +addNode() +addEdge() } Note --> Graph : connects toCode Blocks
Both inline and block code are fully styled with syntax highlighting.
Inline Code
You can use inline code for short snippets like const x = 42 or file names like config.ts.
Block Code
Code blocks support syntax highlighting with language tags:
function greet(name) { console.log(`Hello, ${name}!`); return name.toUpperCase();}
const result = greet('World');interface User { id: number; name: string; email: string;}
const users: User[] = [ { id: 1, name: 'Alice', email: 'alice@domain.test' }, { id: 2, name: 'Bob', email: 'bob@domain.test' },];def fibonacci(n): """Calculate the nth Fibonacci number.""" if n <= 1: return n return fibonacci(n - 1) + fibonacci(n - 2)
print(fibonacci(10))Combining Features
You can combine all these features in a single note:
Mermaid diagrams automatically adapt to your light or dark theme!
graph LR A[Obsidian] --> B[Ametrine] B --> C[Beautiful Garden]- Highlights for emphasis
- Callouts for structured information
- Mermaid diagrams for visualization
- All integrated seamlessly!
Links
These features work alongside existing Ametrine features like wikilinks, backlinks, and the knowledge graph.