Sha256: edcd92ad4ffbf841f3bf10f9cb44d9dfa90dc00417c2fa4da473781591648356
Contents?: true
Size: 509 Bytes
Versions: 7
Compression:
Stored size: 509 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 LINE_BREAK = /( |\\\\)(?=\n)/ # Parse the line break at the current location. def parse_line_break @src.pos += @src.matched_size @tree.children << Element.new(:br) end define_parser(:line_break, LINE_BREAK, '( |\\\\)(?=\n)') end end end
Version data entries
7 entries across 7 versions & 1 rubygems