Sha256: 21f14cfa7697dd9d7c349bc622c50adfbeaf5b24ad97d907073f8636bafe6111
Contents?: true
Size: 528 Bytes
Versions: 7
Compression:
Stored size: 528 Bytes
Contents
# -*- coding: utf-8 -*- # #-- # Copyright (C) 2009-2013 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
7 entries across 7 versions & 1 rubygems