Sha256: 9899413a427e25b1c1989a2c25507cd6c06207356f62504e52b116d6346372ed
Contents?: true
Size: 414 Bytes
Versions: 6
Compression:
Stored size: 414 Bytes
Contents
require "asciidoctor/extensions" module Asciidoctor module Ietf class InlineCrefMacro < Asciidoctor::Extensions::InlineMacroProcessor use_dsl named :cref parse_content_as :text using_format :short def process(parent, _target, attrs) out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert %{<crefref>#{out}</crefref>} end end end end
Version data entries
6 entries across 6 versions & 1 rubygems