Re: Hiding caption for missing image?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Hiding caption for missing image?

mojavelinux
Administrator
Yes, you can control the template that's used for the alt text in your theme:

extends: default
image:
  alt:
    content: ~


Best Regards,

-Dan

On Sat, Apr 11, 2020 at 4:28 AM jolly [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi everyone

Is there a setting to hide the missing image caption that gets inserted? I can't seem to find any options.

[image] | image.png

Many thanks

j.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Hiding-caption-for-missing-image-tp7885.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Hiding caption for missing image?

jolly
Thanks heaps for that Dan. I have one more question if you don't mind.

I notice it still inserts a blank line... I don't suppose there's any way to change that behaviour too?
Reply | Threaded
Open this post in threaded view
|

Re: Hiding caption for missing image?

mojavelinux
Administrator
> I don't suppose there's any way to change that behaviour too?

I'm looking into resolving that for 2.0. If the text ends up being empty, the whole block will be skipped as though it isn't there.

Cheers,

-Dan

On Sun, Apr 12, 2020 at 8:26 AM jolly [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thanks heaps for that Dan. I have one more question if you don't mind.

I notice it still inserts a blank line... I don't suppose there's any way to change that behaviour too?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Re-Hiding-caption-for-missing-image-tp7886p7887.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Hiding caption for missing image?

jolly
Awesome. Thanks heaps again :)