Sha256: 17cff7f4cb8ef19912b65c0955899ec9aeb99ba2d5456bb4d04951c705f85515

Contents?: true

Size: 340 Bytes

Versions: 21

Compression:

Stored size: 340 Bytes

Contents

- case @type
- when :xref
  - refid = (attr :refid) || @target
  %a(href="#{@target}")<=(@text || @document.references[:ids].fetch(refid, "[#{refid}]")).tr_s("\n", ' ')
- when :ref
  %a(id=@target)
- when :bibref
  %a(id=@target)>
  = surround '[', ']' do
    =@target
- else
  %a(href=@target){:class=>role, :target=>(attr :window)}=@text

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.1 lib/resources/backends/haml/deckjs/inline_anchor.html.haml