//// Included in: - user-manual: Extensions: Block macro processor example //// Purpose:: Create a block macro named `gist` for embedding a gist. .sample-with-gist-macro.adoc ``` .My Gist gist::123456[] ``` .GistBlockMacro ```ruby require 'asciidoctor' require 'asciidoctor/extensions' class GistBlockMacro < Asciidoctor::Extensions::BlockMacroProcessor use_dsl named :gist def process parent, target, attrs title_html = (attrs.has_key? 'title') ? %(