Sha256: 2fd412ae7080f5456bfccbb620a8b7b237464d19a3f51c80de2ed4955bbbcf44

Contents?: true

Size: 1.24 KB

Versions: 25

Compression:

Stored size: 1.24 KB

Contents

module IsoDoc::Function
  module Inline
    def section_break(body)
      body.br
    end

    def page_break(out)
      out.br
    end

    def pagebreak_parse(_node, out)
      out.br
    end

    def hr_parse(node, out)
      out.hr
    end

    def br_parse(node, out)
      out.br
    end

    def index_parse(node, out)
    end

        def bookmark_parse(node, out)
      out.a **attr_code(id: node["id"])
    end

    def keyword_parse(node, out)
      out.span **{ class: "keyword" } do |s|
        node.children.each { |n| parse(n, s) }
      end
    end

    def em_parse(node, out)
      out.i do |e|
        node.children.each { |n| parse(n, e) }
      end
    end

    def strong_parse(node, out)
      out.b do |e|
        node.children.each { |n| parse(n, e) }
      end
    end

    def sup_parse(node, out)
      out.sup do |e|
        node.children.each { |n| parse(n, e) }
      end
    end

    def sub_parse(node, out)
      out.sub do |e|
        node.children.each { |n| parse(n, e) }
      end
    end

    def tt_parse(node, out)
      out.tt do |e|
        node.children.each { |n| parse(n, e) }
      end
    end

    def strike_parse(node, out)
      out.s do |e|
        node.children.each { |n| parse(n, e) }
      end
    end
  end
end

Version data entries

25 entries across 22 versions & 2 rubygems

Version Path
isodoc-1.3.0 lib/isodoc/function/inline_simple.rb
isodoc-1.2.8 lib/isodoc/function/inline_simple.rb
isodoc-1.2.7 lib/isodoc/function/inline_simple.rb
isodoc-1.2.6 lib/isodoc/function/inline_simple.rb
isodoc-1.2.5 lib/isodoc/function/inline_simple.rb
isodoc-1.2.4 lib/isodoc/function/inline_simple.rb
isodoc-1.2.3 lib/isodoc/function/inline_simple.rb
isodoc-1.2.2 lib/isodoc/function/inline_simple.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.2.1/lib/isodoc/function/inline_simple.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.1.2/lib/isodoc/function/inline_simple.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/isodoc-1.1.3/lib/isodoc/function/inline_simple.rb
isodoc-1.2.1 lib/isodoc/function/inline_simple.rb
isodoc-1.2.0 lib/isodoc/function/inline_simple.rb
isodoc-1.1.4 lib/isodoc/function/inline_simple.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/isodoc-1.1.2/lib/isodoc/function/inline_simple.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/isodoc-1.1.3/lib/isodoc/function/inline_simple.rb
isodoc-1.1.3 lib/isodoc/function/inline_simple.rb
isodoc-1.1.3.pre.alpha3 lib/isodoc/function/inline_simple.rb
isodoc-1.1.3.pre.alpha2 lib/isodoc/function/inline_simple.rb
isodoc-1.1.3.pre.alpha lib/isodoc/function/inline_simple.rb