Sha256: 05f0bdb5677b57a5f84bea9d1a0bbab7719e15e2c62a710e5ddc45c401db8f08
Contents?: true
Size: 428 Bytes
Versions: 30
Compression:
Stored size: 428 Bytes
Contents
module Nexmo module OAS module Renderer module Filters class InlineEscape < Banzai::Filter def call(input) # Freeze to prevent Markdown formatting input.gsub(/``(.+?)``/) do |_s| frozen_code = Base64.urlsafe_encode64("<code>#{$1}</code>") "FREEZESTART#{frozen_code}FREEZEEND" end end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems