Public: InlineMacroProcessors are used to handle block macros that have a custom name.
InlineMacroProcessor implementations must extend InlineMacroProcessor.
Lookup the regexp option, resolving it first if necessary. Once this method is called, the regexp is considered frozen.
# File lib/asciidoctor/extensions.rb, line 427 def regexp @config[:regexp] ||= (resolve_regexp @name, @config[:format]) end
# File lib/asciidoctor/extensions.rb, line 431 def resolve_regexp name, format # TODO memoize these regular expressions! if format == :short %r(\?#{name}:\[((?:\\]|[^\]])*?)\]) else %r(\?#{name}:(\S+?)\[((?:\\]|[^\]])*?)\]) end end