Sha256: 4d69a88ad352bbccc1fc827a8b4e7244b354b8ae3c00372d1677766dc21c2db1
Contents?: true
Size: 558 Bytes
Versions: 75
Compression:
Stored size: 558 Bytes
Contents
# -*- coding: utf-8 -*- # #-- # Copyright (C) 2009-2016 Thomas Leitner <t_leitner@gmx.at> # # This file is part of kramdown which is licensed under the MIT. #++ # module Kramdown module Parser class Kramdown LINE_BREAK = /( |\\\\)(?=\n)/ # Parse the line break at the current location. def parse_line_break @tree.children << Element.new(:br, nil, nil, :location => @src.current_line_number) @src.pos += @src.matched_size end define_parser(:line_break, LINE_BREAK, '( |\\\\)(?=\n)') end end end
Version data entries
75 entries across 72 versions & 18 rubygems