Use case or problem
Give caption to images, make default into the obsidian so dont have rely in other’s snippets.
used one workaround but due to my centre making snippet active it is not taking the caption.
This is my custom-css
img[alt*=“center”] {
display: block;
margin-left: auto;
margin-right: auto;
}
img[alt*=“right”] {
float:right;
clear:right;
margin-left: 1rem;
margin-bottom: 2px;
margin-top: 2px;
}
.image-embed[alt]:after {
content: attr(alt);
display: block;
margin: 0.2rem 1rem 1rem 1rem;
font-size: 90%;
line-height: 1.4;
color: var(–text-faint);
}
Proposed solution
- Make it inside of obsidian, many problems will be solved.
current workaround
- Not tried so don’t know it works or not!
- Why isn't there a way to add a caption to a local image in one of my Obsidian markdown notes? - #4 by saf-dmitry