Supported options:
:contexts - The blocks contexts (types) on which this style can be used (default: [:paragraph, :open]
:content_model - The structure of the content supported in this block (default: :compound)
:pos_attrs - A list of attribute names used to map positional attributes (default: nil)
:default_attrs - Set default values for attributes (default: nil)
…
# File lib/asciidoctor/extensions.rb, line 368 def config @config ||= {:contexts => [:paragraph, :open]} end
# File lib/asciidoctor/extensions.rb, line 381 def initialize(context, document, opts = {}) super(document) @context = context @options = self.class.config.dup opts.delete(:contexts) # contexts can't be overridden @options.update(opts) #@options[:contexts] ||= [:paragraph, :open] @options[:content_model] ||= :compound end
# File lib/asciidoctor/extensions.rb, line 372 def option(key, default_value) config[key] = default_value end
# File lib/asciidoctor/extensions.rb, line 391 def process parent, reader, attributes nil end