Sha256: bd0f2ad161da26b40db0e0132b45d22482dab460b1e0fc6a5cc1ebfabfe5de36
Contents?: true
Size: 671 Bytes
Versions: 17
Compression:
Stored size: 671 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 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
17 entries across 17 versions & 4 rubygems