set alt tag text using htmlexporter?

12 views
Skip to first unread message

Philip Stephens

unread,
Jul 7, 2017, 4:14:39 PM7/7/17
to Project Jupyter
Is there support to modify the HTML alt tag when converting images for html output?

M Pacer

unread,
Jul 7, 2017, 4:32:26 PM7/7/17
to jup...@googlegroups.com
Do you mean in image outputs or in markdown blocks?

Right now you should be able to specify it in markdown blocks using the ![alt text](image_url) syntax. 

In output blocks, I think we would need to modify nbconvert and you would need to add it to the output metadata in some way (possibly specific to the mimetype you are interested in displaying) and to do that you'd probably display it using the IPython.display mechanism or one of the DisplayObject subclasses classes.

If you mean the latter open an issue on nbconvert and we can try to come up with a solution either for your specific case or making it a more general feature.

Cheers,
M

On Fri, Jul 7, 2017 at 1:14 PM, Philip Stephens <phil....@gmail.com> wrote:
Is there support to modify the HTML alt tag when converting images for html output?

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/7e6ba346-d70d-4473-8c52-6a86782c3892%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages