Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthoraef110
    • CommentTimeJan 5th 2012 edited
     
    Hello,

    Is it possible to set up Web Export to remove image labels altogether? Currently, I get the following:

    <p>Image 1</p>
    <img src="..." ... />

    ... whereas I only want:

    <img src="..." ... />

    In the template editor, Actions --> Inline Styles --> Image --> Result is set up thus:

    {{LOC image}} {{@index}}

    Ulysses won't let me leave the Results field blank, which is what I want (i.e., zero output except for the image itself).

    I've tried inserting a space, but that still exports HTML:

    <p> </p>

    I understand that I can run a shell script upon export, but it would be nice to have a Ulysses-internal way of accomplishing this simple task.


    Kind regards,

    Albert
    •  
      CommentAuthorgoetz
    • CommentTimeJan 5th 2012 edited
     

    You bring up an interesting point. The original idea was to reference images in the text, i.e., if you write a sentence like A piano (see [[pianoImage]]) is a wonderful instrument., which would be converted to A piano (see Image 1) is a wonderful instrument.
    However, you want to simply include an image without referencing it in the text. We will probably include this functionality by allowing empty result fields in the next version. What you could use as a "workaround" in the meantime is set the result field to a single whitespace and to include the image style (e.g., [[pianoImage]]) at the end of an existing paragraph. This way, the single white space is included at the end of the paragraph, which will (hopefully) not change anything about the look of your web page.

    •  
      CommentAuthoraef110
    • CommentTimeJan 5th 2012
     
    Hi Götz,

    Many thanks for your helpful explanation and suggestion. For now, I'm writing a simple Python script that will execute upon export from Ulysses and edit the HTML as needed (love the feature to execute a shell script, BTW!). That way my Ulysses text won't have to reedited when the program is updated. :-)


    Best,

    Albert