Sha256: bc5d296bff05507f7636a867d4ed306030057319b24bc5722a70b0e7c6ba27ee
Contents?: true
Size: 412 Bytes
Versions: 50
Compression:
Stored size: 412 Bytes
Contents
require "asciidoctor/extensions" module Metanorma 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
50 entries across 50 versions & 1 rubygems