Sha256: 48371280d802651151ba65a34162d67913f8c606d38c0824b92c837a6916d8fc
Contents?: true
Size: 645 Bytes
Versions: 15
Compression:
Stored size: 645 Bytes
Contents
# -*- coding: utf-8 -*- # #-- # Copyright (C) 2009-2015 Thomas Leitner <t_leitner@gmx.at> # # This file is part of kramdown which is licensed under the MIT. #++ # module Kramdown module Parser class Kramdown HR_START = /^#{OPT_SPACE}(\*|-|_)[ \t]*\1[ \t]*\1(\1|[ \t])*\n/ # Parse the horizontal rule at the current location. def parse_horizontal_rule start_line_number = @src.current_line_number @src.pos += @src.matched_size @tree.children << new_block_el(:hr, nil, nil, :location => start_line_number) true end define_parser(:horizontal_rule, HR_START) end end end
Version data entries
15 entries across 14 versions & 6 rubygems