Sha256: de4c026d06605e5636116945321bb5f33745f5386c01e1941959abf1fe931eff

Contents?: true

Size: 577 Bytes

Versions: 11

Compression:

Stored size: 577 Bytes

Contents

<% if caption.to_s.empty? %>

  <figure id="<%= id %>" class="<%= klass %>">
    <% if link.to_s.empty? %>
      <img src="<%= embed_id %>" />
    <% else %>
      <a href="<%= link %>"><img src="<%= embed_id %>" /></a>
    <% end %>
  </figure>

<% else %>

  <figure id="<%= id %>" class="<%= klass %>">
    <% if link.to_s.empty? %>
      <img src="<%= embed_id %>" />
    <% else %>
      <a href="<%= link %>">
        <img src="<%= embed_id %>" />
      </a>
    <% end %>

    <figcaption><%= MarkdownMedia.render_markdown caption %></figcaption>
  </figure>

<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
markdown_media-2.0.1 lib/templates/image.erb
markdown_media-2.0.0 lib/templates/image.erb
markdown_media-1.8.0 lib/templates/image.erb
markdown_media-1.7.0 lib/templates/image.erb
markdown_media-1.6.0 lib/templates/image.erb
markdown_media-1.5.0 lib/templates/image.erb
markdown_media-1.4.1 lib/templates/image.erb
markdown_media-1.4 lib/templates/image.erb
markdown_media-1.3 lib/templates/image.erb
markdown_media-1.2.1 lib/templates/image.erb
markdown_media-1.2.0 lib/templates/image.erb