Sha256: b89d4a3e4b9376dd1c806a5d23b28ce0cf03db9084ca7c9c0ac8f9095821e3e7

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module Cosensee
  class TailwindRenderer
    ExternalLinkBracket = Data.define(:content, :project) do
      include HtmlEncodable

      def render
        link = content.link
        anchor = content.anchor || content.link
        %(<span><a href="#{link}" class="text-blue-500 hover:text-blue-700">#{escape_html(anchor)}</a></span>)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cosensee-0.8.0 lib/cosensee/tailwind_renderer/external_link_bracket.rb