diff --git a/lib/markdown.rb b/lib/markdown.rb index df42067ff1..f1681328d6 100644 --- a/lib/markdown.rb +++ b/lib/markdown.rb @@ -27,7 +27,7 @@ def block_code(code, language) end def table(header, body) - %(#{header}#{body}
) + %(
#{header}#{body}
) end # Extend to support img width diff --git a/spec/lib/markdown_spec.rb b/spec/lib/markdown_spec.rb index a9d9f2ab07..ae71f77cd7 100644 --- a/spec/lib/markdown_spec.rb +++ b/spec/lib/markdown_spec.rb @@ -469,7 +469,7 @@ class Foo; end | cell 3 | cell 4 |) end - it { expect(doc.inner_html).to eq "\n\n\n\n\n\n\n\n\n\n\n\n\n
header 1header 3
cell 1cell 2
cell 3cell 4
" } + it { expect(doc.inner_html).to eq "
\n\n\n\n\n\n\n\n\n\n\n\n\n
header 1header 3
cell 1cell 2
cell 3cell 4
" } end describe 'Escape HTML tags' do @@ -641,7 +641,7 @@ class Foo
  • Ruby
  • Go
  • -

    Tables

    +

    Tables

    @@ -654,7 +654,7 @@ class Foo -
    header 1 header 3cell 3 cell 4
    +

    Inline links:

    link text