Sha256: 0592e1d1138e2cefa037f95dfd1725d094af8aa45ebef5b43a6b392bba5e72c9
Contents?: true
Size: 645 Bytes
Versions: 75
Compression:
Stored size: 645 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 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
75 entries across 72 versions & 18 rubygems