Syntax Reference
Quick copy-paste reference for all Ametrine syntax features. Each example shows both the markdown source and the rendered result.
Wikilinks
Basic Link
[[Quick Start]]Result: Quick Start
Link with Alias
[[Configuration Guide|customize your site]]Result: customize your site
Link to Section
[[Deployment Guide#Netlify]]Result: Deployment Guide
Section with Alias
[[Configuration Guide#Theme Customization|theme colors]]Result: theme colors
Highlights
Text Highlighting
This is ==highlighted text== in your note.Result: This is highlighted text in your note.
Multiple Highlights
==First highlight== and ==second highlight== in one sentence.Result: First highlight and second highlight in one sentence.
Marginalia
Basic Margin Note
This is regular text{{This appears in the margin}}.Result: This is regular text1This appears in the margin.
Multiple Margin Notes
First point{{First note}} and second point{{Second note}}.Result: First point2First note and second point3Second note.
Margin Note with Markdown
Regular text{{**Bold**, _italic_, and `code` in margins}}.Result: Regular text4Bold, italic, and code in margins.
See Marginalia Demo for comprehensive examples.
Callouts
Note Callout
> [!note] Title> This is a note callout.Result:
This is a note callout.
Tip Callout
> [!tip] Pro Tip> Use callouts to highlight important information.Result:
Use callouts to highlight important information.
Warning Callout
> [!warning] Watch Out> This is important to note.Result:
This is important to note.
Error Callout
> [!error] Error> Something went wrong.Result:
Something went wrong.
Example Callout
> [!example] Example> Here's how to do it.Result:
Here’s how to do it.
Question Callout
> [!question] Did You Know?> Callouts support markdown.Result:
Callouts support markdown.
Success Callout
> [!success] Complete> Task finished successfully.Result:
Task finished successfully.
Callout without Title
> [!note]> You can omit the title.Result:
You can omit the title.
Multi-paragraph Callout
> [!tip] Multiple Paragraphs> First paragraph here.>> Second paragraph here.>> - List item 1> - List item 2Result:
First paragraph here.
Second paragraph here.
- List item 1
- List item 2
See Obsidian Features Demo for more examples.
Mermaid Diagrams
Flowchart
```mermaidgraph TD A[Start] --> B{Decision} B -->|Yes| C[End] B -->|No| D[Loop] D --> B```Result:
graph TD A[Start] --> B{Decision} B -->|Yes| C[End] B -->|No| D[Loop] D --> BSequence Diagram
```mermaidsequenceDiagram participant User participant System User->>System: Request System->>User: Response```Result:
sequenceDiagram participant User participant System User->>System: Request System->>User: ResponseClass Diagram
```mermaidclassDiagram class Note { +String title +String[] tags +render() }```Result:
classDiagram class Note { +String title +String[] tags +render() }See Obsidian Features Demo for more diagram types.
Math (LaTeX)
Inline Math
The equation $E = mc^2$ is famous.Result: The equation is famous.
Block Math
$$\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$$Result:
Common Math Symbols
- Greek: $\alpha, \beta, \gamma, \delta$- Operators: $\sum, \int, \prod, \lim$- Relations: $\leq, \geq, \neq, \approx$- Sets: $\in, \subset, \cup, \cap$Result:
- Greek:
- Operators:
- Relations:
- Sets:
Citations
Basic Citation
This is cited[@key2023].Result: This is cited[@key2023].
Multiple Citations
Multiple sources[@key1; @key2; @key3].Result: Multiple sources[@key1; @key2; @key3].
Citation with Page
Quote from source[@key2023, p. 42].Result: Quote from source[@key2023, p. 42].
Citations require a bibliography.bib file. See Configuration Guide.
Code Blocks
Inline Code
Use `const x = 42` for constants.Result: Use const x = 42 for constants.
JavaScript
```javascriptfunction greet(name) { console.log(`Hello, ${name}!`);}```Result:
function greet(name) { console.log(`Hello, ${name}!`);}TypeScript
```typescriptinterface User { id: number; name: string;}```Result:
interface User { id: number; name: string;}Python
```pythondef fibonacci(n): if n <= 1: return n return fibonacci(n-1) + fibonacci(n-2)```Result:
def fibonacci(n): if n <= 1: return n return fibonacci(n-1) + fibonacci(n-2)Bash
```bashbun run devbun run build```Result:
bun run devbun run buildJSON
```json{ "name": "ametrine", "version": "1.0.0"}```Result:
{ "name": "ametrine", "version": "1.0.0"}Standard Markdown
Headings
# Heading 1## Heading 2### Heading 3#### Heading 4Text Formatting
**Bold text***Italic text****Bold and italic***~~Strikethrough~~Result: Bold text, Italic text, Bold and italic, Strikethrough
Lists
Unordered Lists
- Item 1- Item 2 - Nested item - Another nested- Item 3Result:
- Item 1
- Item 2
- Nested item
- Another nested
- Item 3
Ordered Lists
1. First item2. Second item3. Third item 1. Nested numbered 2. Another nestedResult:
- First item
- Second item
- Third item
- Nested numbered
- Another nested
Task Lists
- [x] Completed task- [ ] Incomplete task- [ ] Another taskResult:
- Completed task
- Incomplete task
- Another task
Links
External Links
[Google](https://google.com)Result: Google
Auto-links
https://google.comResult: https://google.com
Images
Result:

Blockquotes
> This is a quote.> It can span multiple lines.Result:
This is a quote. It can span multiple lines.
Horizontal Rule
---Result:
Tables
| Column 1 | Column 2 | Column 3 ||----------|----------|----------|| Row 1 | Data | More || Row 2 | Data | More |Result:
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Row 1 | Data | More |
| Row 2 | Data | More |
Footnotes
Here's a sentence with a footnote[^1].
[^1]: This is the footnote content.Result: Here’s a sentence with a footnote1.
Combining Features
You can combine multiple features:
This ==highlighted text== has a margin note{{Important!}} and links to [[Quick Start]].
> [!tip] Combined Features> You can use **bold**, *italic*, `code`, ==highlights==, and {{marginalia}}> all together in callouts!Result: This highlighted text has a margin note5Important! and links to Quick Start.
You can use bold, italic, code, highlights, and 6marginalia
all together in callouts!
Frontmatter
Every note should start with frontmatter:
---title: My Notedescription: What this note is abouttags: [topic1, topic2]date: 2025-10-30author: Your Name---See Frontmatter Reference for all available fields.
Keyboard Shortcuts
Search
Cmd/Ctrl+K- Open search
Graph
Cmd/Ctrl+G- Toggle global graph↑↓←→- Pan graph+/-- Zoom
Navigation
Tab- Next elementShift+Tab- Previous elementEsc- Close modals
Tips and Tricks
Escaping Characters
To show literal syntax without rendering:
Inline Code
Use `[[wikilink]]` to create links.Result: Use [[wikilink]] to create links.
Code Blocks
Use 4 backticks to show 3-backtick code blocks:
````markdown```javascriptcode here```````Line Breaks
Two spaces at end of line for soft break:
Line 1Line 2Empty line for paragraph break:
Paragraph 1
Paragraph 2Special Characters
Escape with backslash:
\* Not italic \*\[ Not a link \]Configuration
Enable/disable features in src/config.ts:
{ marginalia: { enable: true }, gfm: { enableSmartyPants: true }, citations: { enable: true }, // ... more options}See Configuration Guide for details.
Resources
Learn More
- Wikilinks and Graph - Linking features
- Obsidian Features Demo - Feature demonstrations
- Marginalia Demo - Side notes examples
- Advanced Features - Advanced functionality
References
Quick Template
Copy this template for new notes:
---title:description:tags: []date: 2025-10-30---
#
## Overview
Content here...
## Key Points
- Point 1- Point 2
## Related
- [[Related Note 1]]- [[Related Note 2]]Happy writing!
Footnotes
-
This is the footnote content. ↩
Links & Context12GoogleMarkdown Guide
+3 more links
AmetrineWikilinks and Graph
+4 more backlinks
External Links5
Backlinks6
- 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
- Advanced Features
Master search, popovers, activity tracking, and more
- Frontmatter Reference
Complete guide to frontmatter fields in Ametrine
- Configuration Guide
Complete guide to customizing Ametrine via config.ts