Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ internal class TablesGeneratingProvider : GeneratingProvider {
val cells = SPLIT_REGEX.split(separatorRow.getTextInNode(text))
for (i in cells.indices) {
val cell = cells[i]
if (!cell.isBlank() || i in 1..cells.lastIndex - 1) {
if (i in 1..cells.lastIndex - 1 || cell.contains('-')) {
val trimmed = cell.trim()
val starts = trimmed.startsWith(':')
val ends = trimmed.endsWith(':')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ class HtmlGeneratorCommonTest : HtmlGeneratorTestBase() {
defaultTest(GFMFlavourDescriptor())
}

@Test
fun testTableInsideBlockQuoteWithMissingLastPipe() {
defaultTest(GFMFlavourDescriptor())
}

@Test
fun testCheckedLists() {
defaultTest(GFMFlavourDescriptor())
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> | Table | Frezze | Bug |
> | --- | ------ | ---- |
> | foo | some | fix |
> | bar | item | plz
|
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<body>
<blockquote>
<table>
<thead>
<tr>
<th>Table</th>
<th>Frezze</th>
<th>Bug</th>
</tr>
</thead>
<tbody>
<tr>
<td>foo</td>
<td>some</td>
<td>fix</td>
</tr>
<tr class="intellij-row-even">
<td>bar</td>
<td>item</td>
<td>plz</td>
</tr>
</tbody>
</table>
</blockquote>
<p>|</p>
</body>