lib/isodoc/gb/gbhtmlrender.rb in asciidoctor-gb-0.2.5 vs lib/isodoc/gb/gbhtmlrender.rb in asciidoctor-gb-0.3.0
- old
+ new
@@ -1,10 +1,10 @@
module IsoDoc
module Gb
# A {Converter} implementation that generates GB output, and a document
# schema encapsulation of the document for validation
- class Convert < IsoDoc::Convert
+ class HtmlConvert < IsoDoc::HtmlConvert
def formula_parse(node, out)
out.div **attr_code(id: node["id"], class: "formula") do |div|
insert_tab(div, 1)
parse(node.at(ns("./stem")), out)
insert_tab(div, 1)
@@ -87,11 +87,11 @@
end_line(isoxml, out)
end
def end_line(_isoxml, out)
out.hr **{ width: "25%" }
- end
+ end
def error_parse(node, out)
# catch elements not defined in ISO
case node.name
when "string" then string_parse(node, out)
@@ -108,10 +108,10 @@
else
node.children.each { |c| parse(c, out) }
end
end
- def deprecated_term_parse(node, out)
+ def deprecated_term_parse(node, out)
out.p **{ class: "DeprecatedTerms" } do |p|
p << l10n("#{@deprecated_lbl}: ")
node.children.each { |c| parse(c, p) }
end
end