Sha256: 0ff64c17815e2125b92d85d90e0a9ebd08b79093d6e9c554c2c02b57de2ba326

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

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

      def render
        code = content.content
        %(<code class="bg-gray-100 text-red-500 px-1 py-0.5 rounded">#{escape_html(code)}</code>)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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