Sha256: 3940a217b80d40fe13c39bdcd0e68c15ccd94467ab8f8a1b9f7c45da453a85d2

Contents?: true

Size: 721 Bytes

Versions: 8

Compression:

Stored size: 721 Bytes

Contents

- case @type
- when :xref
  - refid = (attr :refid) || @target
  = html_tag('a', { :href => @target, :class => [role, ('fragment' if (option? :step) || (attr? 'step'))].compact }.merge(data_attrs(@attributes)))
    =(@text || @document.references[:ids].fetch(refid, "[#{refid}]")).tr_s("\n", ' ')
- when :ref
  = html_tag('a', { :id => @target }.merge(data_attrs(@attributes)))
- when :bibref
  = html_tag('a', { :id => @target }.merge(data_attrs(@attributes)))
  |[#{@target}]
- else
  = html_tag('a', { :href => @target, :class => [role, ('fragment' if (option? :step) || (attr? 'step'))].compact, :target => (attr :window), 'data-preview-link' => (bool_data_attr :preview) }.merge(data_attrs(@attributes)))
    =@text

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asciidoctor-revealjs-5.1.0 templates/inline_anchor.html.slim
asciidoctor-revealjs-5.0.1 templates/inline_anchor.html.slim
asciidoctor-revealjs-5.0.0.rc1 templates/inline_anchor.html.slim
asciidoctor-revealjs-4.1.0 templates/inline_anchor.html.slim
asciidoctor-revealjs-4.1.0.rc5 templates/inline_anchor.html.slim
asciidoctor-revealjs-4.1.0.rc4 templates/inline_anchor.html.slim
asciidoctor-revealjs-4.1.0.rc3 templates/inline_anchor.html.slim
asciidoctor-revealjs-4.1.0.rc2 templates/inline_anchor.html.slim