mmd to make an image in a figure as a link?

reg's Avatar

reg

02 Nov, 2013 11:56 AM

Is there any shortcut for mmd to output a an image with a link, as follows in HTML?

<figure>
<a href="http://www.somelink.com"><img src="some-image.png" alt="Figure caption" /></a>
<figcaption>Figure caption</figcaption>
</figure>

Tom

  1. Support Staff 1 Posted by Fletcher on 03 Nov, 2013 12:28 AM

    Fletcher's Avatar

    You mean:

    [![image]](http://foo.com/)

    [image]: http://bar.com/image.png

    (It will just be an image, not a figure)

    F-

  2. Fletcher closed this discussion on 03 Nov, 2013 12:28 AM.

  3. reg re-opened this discussion on 03 Nov, 2013 12:15 PM

  4. 2 Posted by reg on 03 Nov, 2013 12:15 PM

    reg's Avatar

    I mean something to combine the two snippets below into a linked caption, as in the example html snippet initially posted. Obvious objection would be that this is a specialised case, requiring new syntax?

    TOm

    COMBINE:

    A linked image

    [![image]](http://www.google.com)

    [image]: http://www.google.com.au/images/nav_logo7.png

    WITH

    A caption

    ![Figure caption][id1]

    [id1]: http://www.google.com.au/images/nav_logo7.png

  5. Support Staff 3 Posted by Fletcher on 03 Nov, 2013 04:09 PM

    Fletcher's Avatar

    The example that you sent didn't actually do anything, or it got mangled. In either case, the example I gave does what you wanted, except for the `<figure>` part.

    If you need something more specific, that's what HTML is for. This is too specialized to be a separate part of the MMD syntax.

    F-

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac