Structured text - inline images
I'm trying to get inline images in structured text working and can't seem to figure it out... Quoted from http://www.zope.org/Members/jim/StructuredTextWiki/StructuredTextNGRules : Text encloded by double quotes followed by a colon, the string img, another colon, an URL, and concluded by punctuation plus white space, or just white space, is treated as an inline image. For example, "Zope icon":img:http://www.zope.org/p_/zopelogo_jpg is interpreted as (in HTML, <img alt="Zope icon" src="http://www.zope.org/p_/zopelogo_jpg">) But when I try it, all I get is a link to "img:http://www.zope.org/p_/zopelogo_jpg" titled "Zope icon". So obviously this rule doesn't seem to be working. Am I missing something obvious? Is there some other way I can get this working? Thanks Chris
Text encloded by double quotes followed by a colon, the string img, another colon, an URL, and concluded by punctuation plus white space, or just white space, is treated as an inline image. this rule doesn't seem to be working. Am I missing something obvious? Is there some other way I can get this working?
why not just simple html like <img src=bla.jpg> ? It works for me. In case of the image tag (not all other HTML tags) I don't think that anything other is easier than the original html image tag. This is of course not true for the link tag (a href).
Chris Beaven wrote:
I'm trying to get inline images in structured text working and can't seem to figure it out...
Quoted from http://www.zope.org/Members/jim/StructuredTextWiki/StructuredTextNGRules :
Text encloded by double quotes followed by a colon, the string img, another colon, an URL, and concluded by punctuation plus white space, or just white space, is treated as an inline image. For example, "Zope icon":img:http://www.zope.org/p_/zopelogo_jpg is interpreted as (in HTML, <img alt="Zope icon" src="http://www.zope.org/p_/zopelogo_jpg">)
But when I try it, all I get is a link to "img:http://www.zope.org/p_/zopelogo_jpg" titled "Zope icon". So obviously this rule doesn't seem to be working. Am I missing something obvious? Is there some other way I can get this working?
You didn't say which version of Zope you're using. I believe the images feature was enabled by default after 2.5.1. If you're using 2.5.1 or lower, you'll probably have to muck around with your lib/python/StructuredText modules, either altering them to use HTMLWithImages, or get a newer version of that directory from CVS. Barry
participants (3)
-
Barry Pederson -
Chris Beaven -
Stephan Goeldi