Markdown playground
Everything this blog can render — math, diagrams, inline SVG, code. Use it as a cheat sheet.
This post is a reference for writing. Delete it whenever you want.
Text
Regular paragraphs, bold, italic, inline code, links and footnotes1.
Blockquotes look like this.
- Lists
- work
- as expected
| Column | Another | Numbers |
|---|---|---|
| a | b | 1.00 |
| c | d | 42.00 |
Math
Inline: the Sharpe ratio is .
Block:
Diagrams (Mermaid)
flowchart LR
A[Market data] --> B{Signal?}
B -- yes --> C[Size position]
B -- no --> A
C --> D[Execute order]
D --> E[(Journal)]
sequenceDiagram
participant Bot
participant Exchange
Bot->>Exchange: POST /order
Exchange-->>Bot: 201 filled
Inline SVG
MDX files accept raw SVG. Use currentColor and var(--accent) so it follows light/dark mode:
Or a file from public/: .
Code
def sharpe(returns, rf=0.0):
excess = returns - rf
return excess.mean() / excess.std(ddof=1)
npm run dev # preview at http://localhost:4321
Footnotes
-
Footnotes are rendered at the bottom. ↩