Sha256: 03bd51c8b54259f08bb0a9d641768a6d9b6d1fda1ad6e03c609d5897e8773973

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

- case type
- when :xref
  - if target.end_with? ".html"
    %ac:link
      %ri:page{ "ri:content-title" => target }
      %ac:plain-text-link-body="<![CDATA[#{(xref_text || %([#{attr :refid}]))}]]>"
  - else
    %ac:link{ "ac:anchor" => (anchor_name(target)) }
      %ac:plain-text-link-body="<![CDATA[#{(xref_text || %([#{attr :refid}]))}]]>"
- when :ref
  %ac:structured-macro{ "ac:name" => "anchor" }
    %ac:parameter=(anchor_name target)
- else
  - if uri_link? target
    %a{href: target}=text
  - else
    %ac:link
      %ri:attachment{ "ri:filename" => File.basename(target) }
      - if target != text
        %ac:plain-text-link-body="<![CDATA[#{text}]]>"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asciidoctor-confluence_publisher-0.1.1 template/inline_anchor.html.haml
asciidoctor-confluence_publisher-0.1.0 template/inline_anchor.html.haml