You can do this by creating a snippet with the following code. Note this will make centered text the default for all table headings.
.markdown-preview-view th {
text-align:revert;
}
Minimal is designed around my personal usage. The default for HTML tables is centered headers, but I prefer left aligned headers. Unfortunately there isn’t a way that I know of to define the default alignment of table headers without overriding all table header alignment. For me this is preferable over manually defining the alignment on every table.
You can also add a class prefix to the code above and use the cssClasses YAML to use this snippet only on select files.
@kepano Have you considered integrating sidenotes into Minimal? I’m currently using a CSS snippet but was curious if you’ve considered it. They can play well with the minimal philosophy and add a nice layer of information. Thanks for a great theme!
Can you share the snippet you are using? The solutions I have seen rely on some hacky syntax which doesn’t seem ideal.
IMO sidenotes should use the standard Markdown footnote syntax. Unfortunately with the current implementation in Obsidian there isn’t a good way to display them in pure CSS.
It would be amazing if someone can take this idea and turn it into a plugin so that the footnote content can be displayed inline and manipulated. Then it would become possible to style that content properly.
You might also want to post a plugin request for this feature. If a plugin does get made to support sidenotes using Markdown, I will definitely explore styling it for Minimal.
See @PR-C’s link to the Edward Tufte inspired description. For a non-paginated medium like Obsidian, sidenotes are a way to contextually position citations/references/etc to make them easy to read. Since they semantically replace footnotes, it seems best to use the Markdown syntax to stay in line with the Obsidian philosophy of future-proof notes.
I have seen Tufte’s description, it is what actually got me interested in sidenotes in the 1st place, and that was when I was already using footnotes a lot and still do.
I still don’t understand the relationship between sidenotes and footnotes, but I do not want to take up your time with that.
My reaction was merely to pcuellar’s comment that Markdown does not work with the sidenote snippet he uses. I have a different snippet and in sidenote text I can e.g. use **text** for bold, and it is rendered as such, even in Live Preview.
Hey @Klaas, thanks for sharing! I like the aside-in version of the sidenote.
I just tested Markdown syntax on text with the snippet I use and it renders it exactly like yours. My understanding of what @kepano was saying is that there is no native Markdown syntax to make sidenotes work. However, I saw yesterday a post on Discord by @holubj on a new plugin called Obsidian Dialogue Plugin that uses Markdown fenced codeblocks to produce side-to-side text. Maybe this can be leveraged to produce sidenotes?
@PR-C: I did not see that one because I don’t often go on the updates channel. They offer a lot more flexibility than the sidenotes. The only thing I would miss is the hide feature that sidenote offers.
Playing with 4.2 already. I’m curious as to how the embed-strict class is supposed to work. I added it on my yaml but the only difference I can see is that the line on the left of the embed has gone away. Is this how it is supposed to work or is it supposed to make transclusions displayed as part of a given paragraph?