Sha256: 37c0cb9ad37b8d2d6df8353c8e4a742b32aa04e0bfa897f7150b8730a36df138

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

---
title:  ‹md_images› Helper
blurb:  Learn to take advantage of helpers that give you a hand using 
        reference style links to content and images.
---
<%= md_links %>
<%= md_images %>

<%= current_page.data.blurb %>

You’ll notice (as you look at the source files for this help content) that the
first ERB instructions immediately after the frontmatter are:

~~~ erb
<%%= md_links %>
<%%= md_images %>
~~~

These convenience helpers make it relatively simple to include Markdown links
and images using the reference format.
 
 
Images
------

Markdown also supports a reference format for images. It looks like this:

~~~ markdown
![this is alt tag content][middlemac-logo-small]
~~~

And will generate this:

![this is alt tag content][middlemac-logo-small]


Here’s the complete result of this helper for this Help Book:

<% code('markdown', :css_class => 'shrink_code') do %>
<%= md_images %>
<% end %>
Note that using reference style Markdown images is performed by the Markdown
processor directly. Using magic prefixes for automatic target-based images
won’t work. However they will work with standard Markdown, non-reference
images. Note how this next example includes the target-specific logo:
{: .note}

~~~ markdown
![target specific logo](all-middlemac-logo-small)
~~~

![target specific logo](all-middlemac-logo-small)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
middlemac-3.1.2 documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/030_markdown_images.html.md.erb
middlemac-3.1.1 documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/030_markdown_images.html.md.erb
middlemac-3.1.0 documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/030_markdown_images.html.md.erb
middlemac-3.0.1 documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/030_markdown_images.html.md.erb
middlemac-3.0.0 documentation_project/Contents/Resources/en.lproj/040_compose_project/080_helpers/030_markdown_images.html.md.erb