forked from markedjs/marked
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request markedjs#1598 from calculuschild/table-block-breaks
Fix GFM tables not breaking on block-level structures
- Loading branch information
Showing
21 changed files
with
277 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<pre><code>a simple | ||
*indented* code block | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
a simple | ||
*indented* code block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<pre><code>foobar()</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
``` | ||
foobar() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h1 id="title">title</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
# title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<hr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div>Some HTML</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
<div>Some HTML</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
<tr> | ||
<td><code>hello</code></td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
`hello` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h1 id="title">title</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
title | ||
===== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<ul> | ||
<li>foo</li> | ||
<li>bar</li> | ||
<li>baz</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
- foo | ||
- bar | ||
- baz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
<tr> | ||
<td><strong>strong</strong></td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
**strong** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>abc</th> | ||
<th>def</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
<td>boo</td> | ||
</tr> | ||
<tr> | ||
<td>hello</td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| abc | def | | ||
| --- | --- | | ||
| bar | foo | | ||
| baz | boo | | ||
hello |