Place `<img>` as block element
This is as same as Obsidian renders.
Also, from my private testing, inline images work horribly.
This would work "okay" in most cases.
Changes
1 changed files
(+2/-1)
}
:where(.${c.wrapper}) img {
+
display: block;
max-width: 100%;
}
:where(.${c.wrapper}) img:not(:first-child) {
-
margin-top: calc(var(--baseline) * 1rem);
+
margin-top: calc(var(--baseline) * 0.5rem);
}
:where(.${c.wrapper}) > math {
Authored by
Shota FUJI
Authored at
2024-04-30 16:32:23 +0900
Committed by
Shota FUJI
Committed at
2024-04-30 16:38:41 +0900
Signature
View
Object name
1c5f9c6d7d3b637ca3b5cd276752bbcbeb671933
Parent
bf4a2248
Tab width
1
2
3
4
6
8
12
Changing tab width requires JavaScript enabled.