Sha256: 44e0cf65c9eb5bae3e8461beaafc6da366a28f1598bc7fe7e342c6529642b3a3
Contents?: true
Size: 363 Bytes
Versions: 10
Compression:
Stored size: 363 Bytes
Contents
module ReverseAsciidoctor module Converters class Head < Base def convert(node, state = {}) title = extract_title(node) "= #{title}\n:stem:\n\n" end def extract_title(node) title = node.at("./title") return "(???)" if title.nil? title.text end end register :head, Head.new end end
Version data entries
10 entries across 10 versions & 2 rubygems