Sha256: 37b824338642d391005019caa97351828c4cfdd400b9eadd5c0fd1af4738161d

Contents?: true

Size: 788 Bytes

Versions: 3

Compression:

Stored size: 788 Bytes

Contents

{% case node.type %}
{% when 'xref' %}
  {% if node.text %}
    <a data-type="xref" href="{{ node.target }}">{{ node.text }}</a>
  {% elsif node.document.references.ids[node.attributes.refid] %}
    <a data-type="xref" href="{{ node.target }}">{{ node.document.references.ids[node.attributes.refid] }}</a>
  {% else %}
    <a data-type="xref" href="{{ node.target }}">[{{ node.attributes.refid }}]</a>
  {% endif %}
{% when 'ref' %}
  <a id="{{ node.target }}"></a>
{% when 'link' %}
  <a href="{{ node.target }}"
     {% if node.attributes.title %}title="{{ node.attributes.title }}"{% endif %}
     {% if node.attributes.window %}target="{{ node.attributes.window }}"{% endif %} >{{ node.text }}</a>
{% when 'bibref' %}
  <a id="{{ node.target }}"></a>[{{ node.target }}]
{% endcase %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-htmlbook-0.0.3 templates/inline_anchor.html
asciidoctor-htmlbook-0.0.2 templates/inline_anchor.html
asciidoctor-htmlbook-0.0.1 templates/inline_anchor.html