Sha256: 9cb1e79e1a0a883248e599724bdcc292250596eec915c3162d3eac06ea0af2cf

Contents?: true

Size: 528 Bytes

Versions: 8

Compression:

Stored size: 528 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

      ESCAPED_CHARS = /\\([\\.*_+`<>()\[\]{}#!:|"'\$=-])/

      # Parse the backslash-escaped character at the current location.
      def parse_escaped_chars
        @src.pos += @src.matched_size
        add_text(@src[1])
      end
      define_parser(:escaped_chars, ESCAPED_CHARS, '\\\\')

    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
motion-kramdown-0.5.1 lib/kramdown/parser/kramdown/escaped_chars.rb
motion-kramdown-0.5.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-1.5.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-1.4.2 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-1.4.1 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-1.4.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-1.3.3 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-1.3.2 lib/kramdown/parser/kramdown/escaped_chars.rb