Comments under pictures #239
|
Hi ! How can i add text under picture without html ? (yeah ik it is problably a dumb question but i can't find any source) |
Replies: 2 comments 1 reply
|
I caught as that it was perhaps meaning image caption. As described in the below post, using If you really want the caption comment without html, you have to style a text placed after image treated as the caption. If you're using Marp CLI, you also can try to use a markdown-it plugin like markdown-it-implicit-figures and markdown-it-image-figures. They can generate In any case, you have to define the style in custom theme CSS or inline style to get better looking caption. |
|
if i understand correctly alt text in bg images gets converted to figcaption (marp-team/marpit#371) but alt text of non-bg images does not get converted to figcaption? Is this understanding correct? I am unable to find much in the documentation, other than these two issues, one of which (this one) being 4 years old. Just want to confirm if using markdown-it plugins is still the only way to solve this problem. Thanks in advance for your efforts, for marp and the marp family of software. |
I caught as that it was perhaps meaning image caption.
As described in the below post, using
<figcaption>HTML tag is exactly correct way from a view of both semantics of Markdown and HTML. We recommend to follow the standard approach due to making less compatibility as the Markdown document.👉 Captions in Markdown | theSynAck
If you really want the caption comment without html, you have to style a text placed after image treated as the caption. If you're using Marp CLI, you also can try to use a markdown-it plugin like markdown-it-implicit-figures and markdown-it-image-figures. They can generate
<figcaption>from the title for Markdown image.In any case, you have to define the style in …