Fried Fishsticks2k downloadsAdds ability to create Tufte-style sidenotes in Obsidian with incrementing numbers.
I first discovered sidenotes, at least in a conscious way, on Gwern.net which was referencing Edward Tufte's conventions.
Basic sidenote capabilities demonstrated
An optional style that highlights references.
Editing a sidenote in the margin, adding a new sidenote, then adding a new margin note
Numbered notes displayed in the margin instead of at the bottom of the note. Run the Insert sidenote command to start one.
<span class="sidenote">text</span> — I use these because it was simple to make them work in my web-published notes too.This is a sentence[^1].ENTER to save; SHIFT+ENTER adds a new line (HTML format only — Markdown footnote definitions are single-line). Editing in Reading mode is optional and off by default.inline code.Insert sidenote (opposite margin) command, or by hand:right or left class, e.g. <span class="sidenote right">text</span>-r or -l to the footnote ID, e.g. [^3-r]Un-numbered notes in the margin, for asides that don't need a reference number. In Editing mode a small marker shows where the note is anchored; it can also be configured to open as a popup instead. Click to edit.
[^mn-1] or [^mn-kitchen]<span class="sidenote margin-note">Insert margin note (opposite margin) command, or add a right/left class (HTML) or -r/-l suffix (footnotes, composes with the mn- prefix, e.g. [^mn-2-l]).Works with both HTML sidenotes and footnotes (experimental). Notes are laid out in the margin rather than inline, and margin notes are dropped from the endnote list at the end of the document.
Suggestions that have not been implemented and are not yet being actively developed.
YOUR-VAULT/.obsidian/plugins/sidenotes.[1]<span> elements to format the sidenotes. I originally designed using this because it was an easy way for me to set up CSS styles in Obsidian as well as CSS styles in my web-published notesRun the command Insert Sidenote.
It will insert this:
<span class="sidenote">{cursor}</span>
Click on the sidenote to edit it in the margin. Press ENTER to update. Press SHIFT+ENTER to add a new line in the sidenote.
it will insert [^1] and add a footnote at the bottom of the document. Press ENTER to update. Using SHIFT+ENTER will not work to add a new line in a footnote because of how footnotes are formatted in Markdown.
By default, every sidenote and margin note lands in whichever margin the Sidenote position setting points to. To pin a single note to the other margin instead, run Insert sidenote (opposite margin) or Insert margin note (opposite margin) from the command palette. These insert the same markup as the regular commands, plus a side marker:
right or left class is added, e.g. <span class="sidenote right">{cursor}</span>-r or -l suffix is added to the footnote ID, e.g. [^3-r] (composes with margin notes: [^mn-2-l])I use Digital Garden to publish a subset of my notes to a website. In the framework Digital Garden has set up, a CSS file called custom-styles.css is where one adds any CSS to modify the default styles.
The snippet of CSS I've been using for web publishing is located in /digital-garden/custom-styles.css.