Nobuyoshi Nakada 2022-07-29 09:10:36 +09:00 коммит произвёл git
Родитель 0d68286be9
Коммит f29f1d22c3
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -287,6 +287,8 @@ class RDoc::Markup::Parser
line << ' ' * indent
when :BREAK, :TEXT then
line << data
when :BLOCKQUOTE then
line << '>>>'
else # *LIST_TOKENS
list_marker = case type
when :BULLET then data

Просмотреть файл

@ -812,6 +812,17 @@ EXPECTED
assert_equal expected, @m.convert(str, @to)
end
def test_block_quote_in_verbatim
str = "BlockQuote\n >>>\n"
expected = <<-EXPECTED
<p>BlockQuote</p>
<pre>&gt;&gt;&gt;</pre>
EXPECTED
assert_equal expected, @m.convert(str, @to).gsub(/^\n/, "")
end
def test_parseable_eh
valid_syntax = [
'def x() end',