Skip to content

Commit 534ff46

Browse files
committed
fix: link within angle brackets was corrupted by table rowspan (#47)
Added two urls within angle brackets to make them as links. It works fine at a normal single cell. While it cannot be turned successfully for a url after the ^^ rowspan symbol.
1 parent 9fe6804 commit 534ff46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jekyll-spaceship/processors/table-processor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ def handle_rowspan(data)
211211

212212
# handle rowspan
213213
span_cell = scope.table.span_row_cells[scope.row.col_index]
214-
if span_cell and cell.content.match(/^\s*\^{2}/)
215-
cell.content = cell.content.gsub(/^\s*\^{2}/, '')
214+
if span_cell and cell.inner_html.match(/^\s*\^{2}/)
215+
cell.inner_html = cell.inner_html.gsub(/^\s*\^{2}/, '')
216216
span_cell.inner_html += "\n<br>\n#{cell.inner_html}"
217217
rowspan = span_cell.get_attribute('rowspan') || 1
218218
rowspan = rowspan.to_i + 1

0 commit comments

Comments
 (0)