Sha256: a4bd1810aba21a1e3e58c76be4794439d2745f6c431d154a087e653fe4c6210c
Contents?: true
Size: 718 Bytes
Versions: 9
Compression:
Stored size: 718 Bytes
Contents
module Nexmo module OAS module Renderer module Filters class Tooltip < Banzai::Filter def call(input) input.gsub(/\^\[([a-zA-Z0-9\s:\-]+)\]\((.+?)\)/) do tooltip = <<~HEREDOC <span class="Vlt-tooltip Vlt-tooltip--top" title="#{$2}" tabindex="0"> #{$1} <svg class="Vlt-icon Vlt-icon--smaller Vlt-icon--text-bottom Vlt-blue" aria-hidden="true"><use xlink:href="/symbol/volta-icons.svg#Vlt-icon-help-negative"/></svg> </span> HEREDOC "FREEZESTART#{Base64.urlsafe_encode64(tooltip)}FREEZEEND" end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems