markdown style test
This is a placeholder post. It shows each Markdown element, so we can check the styles. Text can be bold, italic, or inline code, and it can have a link.
A level 2 heading
Each section starts with a level 2 heading. The post title is the only level 1 heading.
A level 3 heading
- A list item.
- A second list item, with more text so that it wraps onto a second line on narrow screens.
- A nested item.
- A third list item.
- The first step.
- The second step.
- The third step.
A quote has a rule on its left side. It can have more than one line.
Code
use std::collections::BTreeMap;
/// An order book side, keyed by price in ticks.
pub struct Side {
levels: BTreeMap<u64, u64>,
}
impl Side {
pub fn add(&mut self, price: u64, amount: u64) {
*self.levels.entry(price).or_insert(0) += amount; // Merge into the level.
}
}A code block without a language has no label:
$ pandoc lua build.lua
build: wrote 4 post(s)
Table
| Market | Tick size | Max leverage |
|---|---|---|
| BTC | 1 | 50x |
| ETH | 0.1 | 50x |
| SOL | 0.01 | 20x |
Image
A footnote reference looks like this.1
The footnotes go at the end of the post.↩︎