File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def block_code(code, language)
27
27
end
28
28
29
29
def table ( header , body )
30
- %(<table class="table table-bordered table-striped">#{ header } #{ body } </table>)
30
+ %(<div class=" table-responsive"><table class="table table-bordered table-striped">#{ header } #{ body } </table></div >)
31
31
end
32
32
33
33
# Extend to support img width
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ class Foo; end
469
469
| cell 3 | cell 4 |)
470
470
end
471
471
472
- it { expect ( doc . inner_html ) . to eq "<table class=\" table table-bordered table-striped\" >\n <tr>\n <th>header 1</th>\n <th>header 3</th>\n </tr>\n <tr>\n <td>cell 1</td>\n <td>cell 2</td>\n </tr>\n <tr>\n <td>cell 3</td>\n <td>cell 4</td>\n </tr>\n </table>" }
472
+ it { expect ( doc . inner_html ) . to eq "<div class= \" table-responsive \" ><table class=\" table table-bordered table-striped\" >\n <tr>\n <th>header 1</th>\n <th>header 3</th>\n </tr>\n <tr>\n <td>cell 1</td>\n <td>cell 2</td>\n </tr>\n <tr>\n <td>cell 3</td>\n <td>cell 4</td>\n </tr>\n </table></div >" }
473
473
end
474
474
475
475
describe 'Escape HTML tags' do
@@ -641,7 +641,7 @@ class Foo
641
641
<li>Ruby</li>
642
642
<li>Go</li>
643
643
</ol>
644
- <h3 id="Tables">Tables</h3><table class="table table-bordered table-striped">
644
+ <h3 id="Tables">Tables</h3><div class="table-responsive">< table class="table table-bordered table-striped">
645
645
<tr>
646
646
<th>header 1</th>
647
647
<th>header 3</th>
@@ -654,7 +654,7 @@ class Foo
654
654
<td>cell 3</td>
655
655
<td>cell 4</td>
656
656
</tr>
657
- </table><h3 id="Links">Links</h3>
657
+ </table></div>< h3 id="Links">Links</h3>
658
658
<p>Inline links:</p>
659
659
660
660
<p><a href="http://url.com/" title="title" target="_blank">link text</a><br>
You can’t perform that action at this time.
0 commit comments