Sha256: f835635f07b7c57057ac25354de9edfdbe37acf5373fbe20fda692d582170c17

Contents?: true

Size: 1.53 KB

Versions: 53

Compression:

Stored size: 1.53 KB

Contents

module IsoDoc
  module 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 index_xref_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

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

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
isodoc-2.3.6 lib/isodoc/function/inline_simple.rb
isodoc-2.3.5 lib/isodoc/function/inline_simple.rb
isodoc-2.3.4.1 lib/isodoc/function/inline_simple.rb
isodoc-2.3.4 lib/isodoc/function/inline_simple.rb
isodoc-2.3.3 lib/isodoc/function/inline_simple.rb
isodoc-2.3.2 lib/isodoc/function/inline_simple.rb
isodoc-2.3.1 lib/isodoc/function/inline_simple.rb
isodoc-2.3.0 lib/isodoc/function/inline_simple.rb
isodoc-2.2.3.1 lib/isodoc/function/inline_simple.rb
isodoc-2.2.3 lib/isodoc/function/inline_simple.rb
isodoc-2.2.2.2 lib/isodoc/function/inline_simple.rb
isodoc-2.2.1 lib/isodoc/function/inline_simple.rb
isodoc-2.2.0 lib/isodoc/function/inline_simple.rb
isodoc-2.1.5 lib/isodoc/function/inline_simple.rb
isodoc-2.1.4 lib/isodoc/function/inline_simple.rb
isodoc-2.1.3 lib/isodoc/function/inline_simple.rb
isodoc-2.1.2.1 lib/isodoc/function/inline_simple.rb
isodoc-2.1.2 lib/isodoc/function/inline_simple.rb
isodoc-2.1.1 lib/isodoc/function/inline_simple.rb
isodoc-2.1.0.2 lib/isodoc/function/inline_simple.rb