Sha256: e4090733a44aa9d07d68874c9904fa77f451ea105f871197c6efaddf805c3885
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 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 HR_START = /^#{OPT_SPACE}(\*|-|_)[ \t]*\1[ \t]*\1(\1|[ \t])*\n/ # Parse the horizontal rule at the current location. def parse_horizontal_rule @src.pos += @src.matched_size @tree.children << new_block_el(:hr) true end define_parser(:horizontal_rule, HR_START) end end end
Version data entries
5 entries across 5 versions & 1 rubygems