Sha256: 6a8a1ad4b8864e677adc0cf208ba281d1d0d8d53589c2e3e397cd03eda45266b
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
# frozen_string_literal: true require 'uri' module Cosensee class TailwindRenderer HashTag = Data.define(:content, :project) 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.8.0 | lib/cosensee/tailwind_renderer/hash_tag.rb |