Sidenotes
This blog now has sidenotes.
After reading the blog post There is absolutely nothing wrong with Web I figured I could try implementing the same pattern on top of Cobalt, my static-site generator of choice.
I maintain a fork at git.fnordig.de/fnordig/cobalt.rs anyway,
so adding new features is relatively simple.
The actual parser is in jer/md-container. So far it only supports :::aside.
Like so:
<aside-start-here />
The above tag anchors the sidenote to the top of this paragraph.
:::aside
This then is the sidenote. Any **formatting** is allowed _too_.
:::
Sidenotes are shown to the right side of the text if there's space. If not they are shown inline, exactly where they are in the markdown.
I might extend it with arbitrary :::<class> nodes later, thus allowing warnings or info blocks.
But for now that's all.