Raising one more request for give feature to caption images

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

1 Like

duplicate of