lib/asciidoctor/csand/converter.rb in metanorma-csand-1.0.9 vs lib/asciidoctor/csand/converter.rb in metanorma-csand-1.0.10

- old
+ new

@@ -118,19 +118,10 @@ content_validate(doc) schema_validate(formattedstr_strip(doc.dup), File.join(File.dirname(__FILE__), "csand.rng")) end - def literal(node) - noko do |xml| - xml.figure **id_attr(node) do |f| - figure_title(node, f) - f.pre node.lines.join("\n") - end - end - end - def sections_cleanup(x) super x.xpath("//*[@inline-header]").each do |h| h.delete("inline-header") end @@ -141,32 +132,8 @@ end def html_converter(node) IsoDoc::Csand::HtmlConvert.new(html_extract_attributes(node)) end - - def inline_quoted(node) - noko do |xml| - case node.type - when :emphasis then xml.em node.text - when :strong then xml.strong node.text - when :monospaced then xml.tt node.text - when :double then xml << "\"#{node.text}\"" - when :single then xml << "'#{node.text}'" - when :superscript then xml.sup node.text - when :subscript then xml.sub node.text - when :asciimath then stem_parse(node.text, xml) - else - case node.role - when "strike" then xml.strike node.text - when "smallcap" then xml.smallcap node.text - when "keyword" then xml.keyword node.text - else - xml << node.text - end - end - end.join - end - end end end