Sha256: f440f24ceda6dfc6eb462f9171768b13611caf644ac01c44c3bec6dea1dff6f4
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
# frozen_string_literal: true require 'uri' module Cosensee class TailwindRenderer HashTag = Data.define(:content) do include LinkEncodable include HtmlEncodable def render hash_tag = content.content %(<span><a href="#{make_link(hash_tag)}" class="text-blue-500 hover:text-blue-700">##{escape_html(hash_tag)}</a></span>) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.6.0 | lib/cosensee/tailwind_renderer/hash_tag.rb |