Sha256: 2500aa28dd1a5ff19dc793d35207f6d02390135f81c834d5b574f0a732836f39
Contents?: true
Size: 584 Bytes
Versions: 17
Compression:
Stored size: 584 Bytes
Contents
# -*- coding: utf-8; frozen_string_literal: true -*- # #-- # Copyright (C) 2009-2019 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
17 entries across 17 versions & 4 rubygems