Sha256: 9eb543429c1cd43e8dd651acffca1a57548def73e58001eb1aa0ce17493a8f65

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

# -*- coding: utf-8 -*-
#
#--
# Copyright (C) 2009-2014 Thomas Leitner <t_leitner@gmx.at>
#
# This file is part of kramdown which is licensed under the MIT.
#++
#

module Kramdown
  module Parser
    class Kramdown

      EOB_MARKER = /^\^\s*?\n/

      # Parse the EOB marker at the current location.
      def parse_eob_marker
        @src.pos += @src.matched_size
        @tree.children << new_block_el(:eob)
        true
      end
      define_parser(:eob_marker, EOB_MARKER)

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kramdown-1.5.0 lib/kramdown/parser/kramdown/eob.rb
kramdown-1.4.2 lib/kramdown/parser/kramdown/eob.rb
kramdown-1.4.1 lib/kramdown/parser/kramdown/eob.rb
kramdown-1.4.0 lib/kramdown/parser/kramdown/eob.rb
kramdown-1.3.3 lib/kramdown/parser/kramdown/eob.rb
kramdown-1.3.2 lib/kramdown/parser/kramdown/eob.rb